Last active
February 1, 2016 22:40
-
-
Save SystemZ/1f738538a3ea6f10b3cd to your computer and use it in GitHub Desktop.
Git first aid kit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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