Skip to content

Instantly share code, notes, and snippets.

@profnandaa
Created June 30, 2014 06:30
Show Gist options
  • Save profnandaa/eddbb997e059d6b44910 to your computer and use it in GitHub Desktop.
Save profnandaa/eddbb997e059d6b44910 to your computer and use it in GitHub Desktop.
Git snippets and fixes.
git reset --hard # removes staged and working directory changes
git clean -f -d # remove untracked files
git clean -f -x -d # CAUTION: as above but removes ignored files like config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment