githubEdit

Github Introduction

Source control website for hosting code, to install git alone run:

brew install git

To check the version and whether properly installed, run:

git --version

To connect to github and store your credentials, run:

git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"

HTTPS method for GitHub

To clone a repository using HTTPS, run:

git clone https://github.com/<username>/<repo-name>.git

Gitignore

Tells git to ignore certain files, useful for security reasons.

Boilerplate

For macOS, maintained by git themselves herearrow-up-right

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

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

Last updated