Git: new branch doesn't push

I created a branch, say, "dev", which was based on the name of the "Base" branch, and then combined it with the contents of Upstream (I want to keep Base clean until it ends with my testing). After resolving the conflicts, I ran the git commit -a -m "comment" command, and it passed. Then I launched git push, hoping that a new branch would be created on the git server, and also my merged content on dev would be visible. But, when I started git push, the command gave the output "All updated", and I do not see a new branch on the git server. Is there something I am missing?

+7
source share
1 answer

See if you created a branch on a remote repo:

$ git branch -av 

You probably didn’t. You can create a branch by explicitly indicating that you want to press it:

 $ git push origin dev 

By default, git pushes all branches that have the corresponding branch on the remote control (new branches do not work).

+20
source

All Articles