Git克隆项目到一个非空目录

> cd ~/SEVEN-GAME-WECHAT
> git clone --no-checkout git@codehub-cn-south-1.devcloud.huaweicloud.com:7GAMEwzzgxm00001/devcloud-seven-game-wechat.git tmp
Cloning into 'tmp'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), done.
> mv tmp/.git .
> rmdir .\tmp\
> git reset --hard HEAD
HEAD is now at 6634fb9 Initial commit
# Git 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×