使用 git 提交到指定远程分支 git add . git commit . # 或者使用 git commit -m "messges" git pull origin 远程分支名 # 相当于指定分支的代码与当前分支的代码合并到了一起 git push origin 远程分支名 # 提交到制定分支