Isaac Sloan - Web Developer, Photographer, Musician and Citizen of Earth
Banner700

Version Server Conf Files Locally with Git

July 17, 2014

Step 1: Choose the folder

cd your_conf_folder

Step 2: Initialize Git for the Folder

git init

Step 3: Create .gitignore

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
Version Server Conf Files Locally with Git