I am on a branch (let them say master), and I have some changes in my working directory. I get the job, but I need a lot of cleanup, so I would like to keep the current working directory in the branch just in case I need to return to it. I will definitely delete the branch later.
In addition, I want to continue working on the master EXACTLY where I was.
Now I am doing:
# Save to topic branch git checkout -b working-stuff git commit -a -m "work in progress"
In the future, I will delete the topic thread.
So, the above does exactly what I want, but it is a bit verbose. Is there an easier way to do this (besides just writing)?
source share