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

 

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注