gitclone非空目录方法

  1. 进入非空目录, 进入forehead.sharevar.com文件夹

  2. git clone --no-checkout https://git.coding.net/BIG-Q/foreheadtech.git foreheadtech

  3. mv foreheadtech/.git . #将 foreheadtech 目录下的 .git 目录移到当前目录

  4. rmdir foreheadtech

  5. git reset --hard HEAD

posted @ 2022-03-12 19:22  云鲸啊  阅读(307)  评论(0)    收藏  举报