News for hackers. Stuff that matters.
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...]

Re:Lesser known Git commands by majewsky on Friday September 30, 2016 @05:06PM (#12615292)
`git sprout <branch-name>` looks identical to `git checkout -b <branch-name>`.