git使用技巧总结

一、把github上的代码下载下来

git clone ......

二、把修改的代码提交上去

git add ....
git commit -m "........"
git push -u origin master

三、强制切换成某个版本

git reset --hard .....commit code .......

四、切换成最新版本

git pull

猜你喜欢

转载自www.cnblogs.com/ch122633/p/10470543.html