Skip to content

Instantly share code, notes, and snippets.

@adriantorrie
Last active January 26, 2016 10:23
Show Gist options
  • Save adriantorrie/ddb9c1a585f9b12b64b7 to your computer and use it in GitHub Desktop.
Save adriantorrie/ddb9c1a585f9b12b64b7 to your computer and use it in GitHub Desktop.
Steps to clean a git repo that has unstaged changes
# http://stackoverflow.com/questions/14075581/git-undo-all-uncommitted-changes
git reset
git checkout .
git clean -fdx
git pull
# make all shell files in the repo /bin directory executable
find ./bin -name "*.sh" -exec chmod u+x {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment