Skip to content

Instantly share code, notes, and snippets.

@SystemZ
Last active February 1, 2016 22:40
Show Gist options
  • Save SystemZ/1f738538a3ea6f10b3cd to your computer and use it in GitHub Desktop.
Save SystemZ/1f738538a3ea6f10b3cd to your computer and use it in GitHub Desktop.
Git first aid kit
#http://rogerdudler.github.io/git-guide/files/git_cheat_sheet.pdf
##ignore chmod - http://stackoverflow.com/a/1580644/1351857
#git config core.fileMode false
##remove vendor or node_modules -
##http://stackoverflow.com/a/17824718/1351857
##http://stackoverflow.com/a/32886427/1351857
#git filter-branch --tree-filter 'rm -rf node_modules' --prune-empty HEAD
#echo node_modules/ >> .gitignore
#git add .gitignore
#git commit -m 'Removing node_modules from git history'
#git gc --prune=all --aggressive
#git push origin --all --force
#git push origin --tags --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment