Re:Lesser known Git commands
by prashnts on Friday September 30, 2016 @12:27PM
(#12613455)
I use `legit` aliases for this. It allows me to do `git sprout <new branch name>`, where it stashes my untracked changes, create a new branch, pop the stash and applies it. Pretty handy!
legit: https://github.com/kennethreitz/legit [1]
[Ignore the pretentious "for humans" tagline though...]