把普通的git库变成bare库时间:2023-03-09 06:55:18 $ 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