Skip to content

Instantly share code, notes, and snippets.

@dotspencer
Last active January 18, 2017 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotspencer/7b2f60b3bd50e35aefc96a24801b2b56 to your computer and use it in GitHub Desktop.
Save dotspencer/7b2f60b3bd50e35aefc96a24801b2b56 to your computer and use it in GitHub Desktop.
Helpful Git Commands

##Helpful Git Commands

git log --stat

→ Show abbreviated stats for each commit.

git clean -xfd

→ Remove all untracked files.

git reset --hard

→ Revert all changes back to last commit.

git checkout -b <new-branch-name>

→ Create new "topic" branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment