這只是記錄:
1. 進入非空目錄,假設是 /workdir/proj1
2. git clone --no-checkout https://git.oschina.net/NextApp/platform.git tmp
3. mv tmp/.git . #將 tmp 目錄下的 .git 目錄移到當前目錄
4. rmdir tmp
5. git reset --hard HEAD
這只是記錄:
1. 進入非空目錄,假設是 /workdir/proj1
2. git clone --no-checkout https://git.oschina.net/NextApp/platform.git tmp
3. mv tmp/.git . #將 tmp 目錄下的 .git 目錄移到當前目錄
4. rmdir tmp
5. git reset --hard HEAD
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。