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 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts