Created
September 19, 2011 18:38
-
-
Save mexitek/1227224 to your computer and use it in GitHub Desktop.
Remove and untrack test/config files in Git
This file contains hidden or 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
echo "*.config">>.gitignore; | |
git rm --cached "*.config"; | |
git add .; | |
git commit -m "Ignoring and deleting config files." ; | |
git push origin; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1.) You can also make this a one-liner so you can easily copy and paste in command line.
2.) Preferably, save it as a shell script in your home directory and run: ~/ignoreConfigs.sh
In every directory.