用惯了sourcetree提交代码 突然发现有时候git命令也挺好用的 所以抽空总结了一些使用频率较高较实用的git命令
1. git init
2. git remote add origin <Url>
3. git push --set-upstream origin master
4. git clone <Url>
5. git clone -b <BranchName> <Url>
6. git branch -a
7. git checkout <BranchName>
8. git checkout -b <BranchName>
9. git branch <BranchName>
10. git branch -d <BranchName>
11. git push origin --delete <BranchName>
12. git status
13. git add .
14. git reset HEAD
15. git reset HEAD <FileName>
16. git push
17. git push origin <BranchName>
18. git merge <BranchName>
19. git log
20. git fetch