local branch git push to a remote repository and creates a new branch in the remote repository

$ git push <远程主机名> <本地分支名>:<远程分支名>

git push master test:test

#master 为设置的远程仓库别名,第一个test为本地分支名,第二个test为远程分支名

Guess you like

Origin www.cnblogs.com/rwxwsblog/p/11286811.html