把普通的git库变成bare库
时间:2015-02-18 09:26:30
收藏:0
阅读:897
$ cd your_repo $ mv .git .. && rm -fr * $ mv ../.git . $ mv .git/* . $ rmdir .git $ git config --bool core.bare true $ cd ..; mv your_repo your_repo.git # 更名
原文:http://www.cnblogs.com/welhzh/p/4295621.html
评论(0)