git bare的branch轉換成一般git
將bare的git repository轉換成一般的git repository
git bare其實就是一般git repo的.git目錄
所以只要把目錄改名成.git,
然後把config內的core.bar設定改false,
就可以在上一層目錄,用git reset --hard把所有的檔案拉出來了
反之, 把.git 拉出來, 然後改config設定core.bar為true
切換bare的git repository的當前branch
https://stackoverflow.com/questions/3301956/git-correct-way-to-change-active-branch-in-a-bare-repository
git symbolic-ref HEAD refs/heads/mybranch
切換bare的git repository的當前branch
https://stackoverflow.com/questions/3301956/git-correct-way-to-change-active-branch-in-a-bare-repository
git symbolic-ref HEAD refs/heads/mybranch
留言