Make GIT Ignore Everything Except A Few Files

Posted by Weston Ganger on August 23, 2015

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

Related External Links:

Posted in Linux and Tagged with git gitignore linux 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts