git fetch
git rebase
解决冲突
git add 冲突文件
git rebase –continue
git push
参考 https://blog.csdn.net/matrix_google/article/details/80676034 与原仓库同步
git merge upstream/master//同步
git push
//查看同步
git remote -v
git fetch upstream//抓取原仓库文件
合成一步
git pull upstream master
git status 查看文件更改
git diff 查看更改内容
git chekout 分支名
git checkout -b 分支名 #新建分支
git branch 查看存在的分支
git checkout 分支名 切换分支
git stash 保存但钱工作 回滚到第一次提交
git stash pop 弹出最新的一次stash 先进后出