git push to remote branch

后端 未结 2 848
遇见更好的自我
遇见更好的自我 2020-12-22 18:19

Folks,

I had cloned a repo. I created a branch out of it to work on a feature by issuing the following command:

git branch fix78

then I

2条回答
  •  无人及你
    2020-12-22 19:00

    git push origin master:fix78 pushes the local master to a remote branch called fix78. You wanted to push the local branch fix78, which has the same syntax but without the master:

    You can fix it by doing git push origin :fix78 to delete the remote branch and then git push origin fix78 to push your local branch to the remote repo.

提交回复
热议问题