Make GIT Ignore Everything Except A Few Files
Posted by Weston Ganger
I wanted to add all of my dot files to a repository and wanted to only add some of the files in my home folder.
All you have to do is edit your .gitignore file:
# .gitignore # ignore all files * # except these files !.gitignore # make sure you add this !.bashrc !.vimrc !.ssh/*
Related External Links: