So I have the following situation:
I committed some work locally, without pushing to the remote repository. I want to move this local code to another branch, because if I pull, there will be modifications that will ruin all the work I put locally.
This is the output of git status
on the old branch:
On branch <branch_name>
Your branch is ahead of 'origin/<branch_name>' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
And this is the output of git status
on the newly created branch:
On branch <branch_name>
nothing to commit, working directory clean