Git - csusbdt/csusbdt.github.com Wiki

Original URL: https://github.com/csusbdt/csusbdt.github.com/wiki/Git

Stuff I need to remember better.

put uncommitted changes into a new branch

git switch -c <new-branch>

remove all changes to working directory

git reset         # shows what will be removed by --hard
git reset --hard  # do it