git checkout [branchname] git add . git commit 'add a branch' git push origin [branchname] 转载于:https://www.cnblogs.com/gongnol/p/9435125.html