A
A
Andrey Shishkin2016-04-06 10:26:42
git
Andrey Shishkin, 2016-04-06 10:26:42

How to push a branch with changes?

The master downloaded the branch, made changes to the code, but I can’t commit, you need to take the branch away from the master and commit it into it.
How do I push a branch so that the changes I made are already in the new branch?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wheelie, 2016-04-06
@Wheelie

git checkout -b new-master
Then go back to master and stash the git stash for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question