Skip to content

Instantly share code, notes, and snippets.

@fodra
Last active May 30, 2018 04:50
Show Gist options
  • Save fodra/3c789029b79f960c478adcfabf53f170 to your computer and use it in GitHub Desktop.
Save fodra/3c789029b79f960c478adcfabf53f170 to your computer and use it in GitHub Desktop.
Git commands
  1. Remove all untracked git files

$ git clean -fd

  1. View all tags

$ git tag

  1. Undo last commit

$ git reset HEAD~

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