如何將普通的Git存儲庫轉換爲裸存儲庫? - How to convert a normal Git repository to a bare one?

問題:

How can I convert a 'normal' Git repository to a bare one? 如何將「普通」Git存儲庫轉換爲裸存儲庫? git

The main difference seems to be: 主要區別彷佛是: ide

  • in the normal git repository you have a .git folder inside the repository containing all relevant data and all other files build your working copy 在普通的git存儲庫中,您在存儲庫中有一個包含全部相關數據的.git文件夾,而全部其餘文件都構建了您的工做副本 ui

  • in a bare Git repository, there is no working copy and the folder (let's call it repo.git ) contains the actual repository data 在一個裸Git存儲庫中,沒有工做副本,文件夾(咱們稱之爲repo.git )包含實際的存儲庫數據 spa


解決方案:

參考一: https://stackoom.com/question/9EID/如何將普通的Git存儲庫轉換爲裸存儲庫
參考二: https://oldbug.net/q/9EID/How-to-convert-a-normal-Git-repository-to-a-bare-one
相關文章
相關標籤/搜索