git命令几个总结

比较常用的是

git clone

git pull

git add

git commit (--amend)

git push

git stash 

git stash pop

git reflog

git reset --hard

git reset --soft

git rebase

 

不常用但非常有用的命令及说明

git clean -fd             ///删除无关文件

git branch           ///查看分支

git branch -r

git checkout branchname

git checkout file

posted @ 2019-11-14 08:20  atoman  阅读(93)  评论(0编辑  收藏  举报