查看分支:git branch 查看所有分支 git branch -a 更新远程已存在的分支 git fetch 切换分支 git checkout git隐藏,场景:自己作了修改,不想提交,需要切换到其他分支 git stash