把普通的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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!