git常用命令
1. git log 查看历史提交信息
2. git status 检查下修改内容
3. git stash 隐藏本地修改
4. git add . 添加至暂存区
5. git commit -m'描述' 提交
6. git pull 拉回远程版本库的提交
7. git push 推送至远程版本库
8. git push origin dev --force 强制推送到远程
9. git branch 查看当前项目中的所有分支
10. git branch -r 查看远程分支
11. git branch -a 查看本地和远程所有分支
12. git remote show origin 查看当前origin仓库基本信息
13. git remote update origin --prune 更新origin远程分支列表
14. git remote prune origin 同步origin远程的分支到本地
15. git pull origin login 拉取远程分支login到本地
16. git fetch 抓取远程仓库最新代码
17. git merge origin/master 把远程分支内容合并到本地 master 分支下