Skip to content

Move uncommited changes to a new branch

If you’re working, for example, on a on-going 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:

[sc name=”src” url=”https://stackoverflow.com/questions/1394797/move-existing-uncommitted-work-to-a-new-branch-in-git” ]

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.