I currently work on a feature that turns out to be bigger than expected, so it’s probably the best to create a branch to work on it. So I need to create a new branch from my current working directory and reset the master branch to the current HEAD so that some fixes to the production environment can be done.
Somehow this sounds like an easy task, yet I can’t quite figure it out. Possibly due to my lack of sleep.
So, create a working branch:
either commit or stash your changes
OR
Go back to master