Skip to content

Instantly share code, notes, and snippets.

@RobAWilkinson
Created December 3, 2014 00:23
Show Gist options
  • Save RobAWilkinson/19e7b3d6ca220c69e403 to your computer and use it in GitHub Desktop.
Save RobAWilkinson/19e7b3d6ca220c69e403 to your computer and use it in GitHub Desktop.
Git config initial setup

###Step 1 Make some Folders $ mkdir ~/.config $ mkdir ~/.config/git

###Step 2 Create a blank file $ touch ~/.config/git/ignore

###Step 3 Open in Sublime $ subl ~/.config/git/ignore

###Step 4 Paste this in

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

###Step 5 Save this rm your .git folder and run git init again on your repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment