ilVacca
10/5/2018 - 1:39 PM

Git Commands

# Initial config
git config --global user.email sam@example.com

# Local repository
git init

# Remote repository
git clone username@/host:/path/to/repository

# Add all files
git add *

# Remove files from local repository
git rm --cached *

# Commit changes to local repository
git commit -m "Commit message"

# Push changes to master branch
git push origin master

# Get status
git status