Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
INITIALIZATION
git clone -o [name to use to refer to repo] [url]
REMOTE -> LOCAL
git remote update: download changes from github
git diff github/[branch]: see changes between local and origin
git merge github/[branch]: merge changes from origin into local
git pull [origin] [branch]:
INFO
git status: changes to commit, files to add etc. (purely local)
git branch: see what branch you're on
'SAVING' CHANGES
git commit -a: commit changes to all added files
git add [files]: add new files to project
LOCAL -> REMOTE
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment