Version Server Conf Files Locally with GitJuly 17, 2014 |
cd your_conf_folder
git init
vim .gitignore
Copy the following whitelisting code into the file and modify where necessary.
# First, ignore everything
*
# Now, whitelist anything that's a directory
!*/
# Add all the file types you're interested in.
!*.one
!*.two
!*.etc