If I have added something in master branch then I decided that it need to be in a purposely created branch, called some-branch.
Those new files changed in master are now green. I do not want to commit them in master but in the new branch that I have forgot to create befor I have made the changes.
So how to commit changes for a different branch?
As long as the branch doesn't have conflicting changes, you can git checkout your new branch with those changes (without committing) and they will remain.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With