Skip to content

Instantly share code, notes, and snippets.

@d4rkd3v1l
Last active February 5, 2016 17:39
Show Gist options
  • Save d4rkd3v1l/6b170336ba74795655ac to your computer and use it in GitHub Desktop.
Save d4rkd3v1l/6b170336ba74795655ac to your computer and use it in GitHub Desktop.
Reset stuck files in git (complete reset)
#!/bin/sh
# execute this in your repo's root dir
git rm --cached -r .
git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment