Answer the question
In order to leave comments, you need to log in
How to move uncommitted changes from one branch to another in git?
In the process of work, I forgot to create a branch and switch to it and continued working in the already completed branch. There is a lot of work, how to create a branch and transfer all changes from the current one without loss? Thanks in advance!
Answer the question
In order to leave comments, you need to log in
just make a branch without making a checkout at the same time and being in this branch make a commit
You can also use git stash for this.
Especially if you need to switch to another branch, do something there and then come back.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question