$ 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

 

相关文章:

  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2021-06-14
  • 2021-09-16
  • 2021-11-30
  • 2021-07-24
相关资源
相似解决方案