git checkout -b xx origin/master

这样的话
会把本地的xx分支和远程的master分支建立一个match
会在git push origin xx之后
git status
仍会显示ahead of origin/master by 1 commit
---
所以我觉得还是
到master分支下更新然后新建一个分支然后push

原文地址:https://www.cnblogs.com/qinqiu/p/8989111.html