把普通的git库变成bare库
生活随笔
收集整理的這篇文章主要介紹了
把普通的git库变成bare库
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
$ 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 ? ? ? ? ? ? ? ?# 更名
?
創建裸倉庫: $ git init --bare倉庫于裸倉庫之間的轉換:
$ git clone --bare?
總結
以上是生活随笔為你收集整理的把普通的git库变成bare库的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tsinsen A1067. Fibon
- 下一篇: 【hibernate框架】一对多(多对一