I was working on master branch, made some changes and then stashed them. Now, my master is at HEAD.
But now, I want to retrieve these changes but to a new branch which branches from the HEAD version of the master branch.
How do i do this ?
2022-05-27
I was working on master branch, made some changes and then stashed them. Now, my master is at HEAD.
But now, I want to retrieve these changes but to a new branch which branches from the HEAD version of the master branch.
How do i do this ?
Is the standard procedure not working?
git stash save
git branch xxx HEAD
git checkout xxx
git stash pop
Shorter:
git stash
git checkout -b xxx
git stash pop