Skip to content

Instantly share code, notes, and snippets.

@kickroot
Created December 4, 2012 14:17
Show Gist options
  • Save kickroot/4204368 to your computer and use it in GitHub Desktop.
Save kickroot/4204368 to your computer and use it in GitHub Desktop.
Github cheat sheet
## Change to your project root folder and do this initially to get your repo set up
git init
git remote add origin <Your repo URL>
git pull origin master
git add .
git commit -am "Initial commit"
git push
## Do this whenever you have changes to make permanent
git add . # If you added any files
git commit -am "<Your change message>"
git push
## Do this when someone else has updated the repo and you want changes
git pull
## Do this to see what your current status is
git status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment