Created
October 29, 2013 16:59
-
-
Save samrocketman/7218569 to your computer and use it in GitHub Desktop.
A gitignore file for initializing a git repository in the root file system. Because the include list is a white list of files there aren't any issues with repositories being in a sub tree. This .gitignore file is in the `/` filesystem where there is a git repository at `/.git`. The name of this repository on the central server is the domain name…
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
#Track iptables | |
#the order of the patterns matter because we want to track a child but not any parents | |
#http://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder | |
#global types to ignore | |
*.swp | |
#include all directories and files to be ignored completely | |
/app | |
/.autofsck | |
/bin | |
/boot | |
/cgroup | |
/dev | |
/home | |
/lib | |
/lib64 | |
/lost+found | |
/media | |
/mnt | |
/opt | |
/proc | |
/root | |
/sbin | |
/selinux | |
/srv | |
/sys | |
/tmp | |
/usr | |
/var | |
#first level directories to partially ignore | |
!/etc | |
/etc/* | |
#second level files/directories to partially ignore | |
!/etc/sysconfig | |
/etc/sysconfig/* | |
!/etc/httpd | |
/etc/httpd/* | |
!/etc/rc.d | |
/etc/rc.d/* | |
#third level files/directories to partially ignore | |
!/etc/sysconfig/iptables | |
!/etc/httpd/conf.d | |
!/etc/httpd/conf | |
!/etc/httpd/ssl.crt | |
!/etc/httpd/ssl.key | |
!/etc/rc.d/init.d | |
/etc/rc.d/init.d/* | |
#fourth level files/directories to partially ignore | |
!/etc/rc.d/init.d/gitlab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment