Answer the question
In order to leave comments, you need to log in
How to push a commit to a new local branch from push?
I have a commit with some changes, I soon realized that I can’t push into the master branch (I don’t have rights). The only option is to create a new branch and push to it. But if I create a new branch, the non-pushed commit will be lost. Maybe there is an option to create a branch on the server, but locally, with one command, say that you would push the commit not to the master, but to another branch, without switching to it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question