Skip to content

Instantly share code, notes, and snippets.

@samgooi4189
Created April 18, 2017 03:31
Show Gist options
  • Save samgooi4189/a46be3dd2e9c41a514e49648c8b6ebc5 to your computer and use it in GitHub Desktop.
Save samgooi4189/a46be3dd2e9c41a514e49648c8b6ebc5 to your computer and use it in GitHub Desktop.
Clear git changes and unstaged files
# reset to HEAD
git reset HEAD --hard
# will remove unstaged files without removing gitignore file
git clean -fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment