Skip to content

Move uncommited changes to a new branch

If you’re working, for example, on a ongoing fix, you may want to commit your changes to another branch than master. As long you haven’t commited your changes, you change your working branch with the following command:

git checkout -b <new-branch>

(source)

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.