- push本地分支到远程分支
git push <远程主机名> <本地分支名>:<远程分支名>
注意,冒号左右两边不能有空格,否则会报如下错误:
$ git push origin feature_20170720 : feature_20170720
error: dst ref refs/heads/feature_20170720 receives from more than one src.
error: failed to push some refs to 'git@git.zlp1992.com:test/test.git'