SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply check out a new branch, and then commit:
git checkout -b my_new_branch git commit
Checking out the new branch will not discard your changes.