Skip to content

Instantly share code, notes, and snippets.

@brokkr
Created September 9, 2015 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brokkr/f1a1b5d13c7e296cffad to your computer and use it in GitHub Desktop.
Save brokkr/f1a1b5d13c7e296cffad to your computer and use it in GitHub Desktop.
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