Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直是唯一的开发人员,在 git 下使用本地存储库开发一个项目。
现在我需要为本地网络上的协作创建一个裸仓库。
我怎么做?
git clone -l --bare old_repo_dir new_repo.git
注意:如果计划是通过网络进行协作,最好简单地创建一个网络托管的存储库并将本地存储库推送到该存储库。