git stash保存本地修改
远程分支发生修改,本地分支修改未添加到暂存区,可以使用如下命令更新
第一步: git stash 将本地的改动暂存
第二步: git pull 获取最新更新
第三步: git stash pop 将改动还原
bug分支当中讲解了git stash
多人协作当中讲解了我们平时需要的内容
git pull、git fetch、git merge
https://www.oschina.net/translate/git-fetch-and-merge?lang=chs&p=1
查看分支
git brach 查看本地分支
git brach -r 查看远程分支
参考: