Skip to content

Instantly share code, notes, and snippets.

@mexitek
Created September 19, 2011 18:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mexitek/1227224 to your computer and use it in GitHub Desktop.
Save mexitek/1227224 to your computer and use it in GitHub Desktop.
Remove and untrack test/config files in Git
echo "*.config">>.gitignore;
git rm --cached "*.config";
git add .;
git commit -m "Ignoring and deleting config files." ;
git push origin;
@mexitek
Copy link
Author

mexitek commented Sep 19, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment