本地提交后要提交到远程仓库,默认情况下git push即可。 有时远程仓库有多个分支,git push就不能直接执行 git push <远端仓库> 源分支:目标分支 可用git branch -a 查看分支情况