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
#!/bin/bash | |
# Run this from the root of a git repo - AFTER YOU COMMIT THE CHANGES YOU CARE ABOUT! | |
# Then, if you need to keep the deleted files in your working copy (e.g. IDE config files), | |
# be sure to unstage them before your next commit. | |
# attribution: http://www.randallkent.com/2010/04/30/gitignore-not-working/ | |
for file in `cat .gitignore` ; do git rm -r --cached $file; done |
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
#!/bin/bash | |
# protect an ext drive (USB, memcard, etc) from the following files: | |
# .Spotlight-V* (Spotlight index) | |
# .Trashes (Deleted files) | |
# .fseventsd/* (journaling) | |
# .DS_Store (finder prefs... not implemented, yet) | |
# run this from the root of the drive that should be protected |
NewerOlder