1. 进入非空目录,假设是 /laoji.org
2.
git clone --no-checkout https://git.oschina.net/NextApp/platform.git tmp
3. #将 tmp 目录下的 .git 目录移到当前目录
mv tmp/.git .
4.
rmdir tmp
5.
git reset --hard HEAD
1. 进入非空目录,假设是 /laoji.org
2.
git clone --no-checkout https://git.oschina.net/NextApp/platform.git tmp
3. #将 tmp 目录下的 .git 目录移到当前目录
mv tmp/.git .
4.
rmdir tmp
5.
git reset --hard HEAD
链接到文章: https://jiloc.com/43557.html
Copyright © 老季博客 苏ICP备2021023056号-3 Proudly powered by UZI Theme
发表回复