Skip to content

Instantly share code, notes, and snippets.

@sjev
Last active November 1, 2017 09:48
Show Gist options
  • Save sjev/f805b8e3109e45342ce6a60914b28f89 to your computer and use it in GitHub Desktop.
Save sjev/f805b8e3109e45342ce6a60914b28f89 to your computer and use it in GitHub Desktop.
git cheat sheet

Revert changes

git reset

$ git reset --hard

Branching

delete remote

$ git push <remote_name> --delete <branch_name>

delete local

$ git branch -d branch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment