Skip to content

Instantly share code, notes, and snippets.

@shreyas-satish
Created April 8, 2016 03:40
Show Gist options
  • Save shreyas-satish/e46f41bac7cf1214ca7b344459fdac55 to your computer and use it in GitHub Desktop.
Save shreyas-satish/e46f41bac7cf1214ca7b344459fdac55 to your computer and use it in GitHub Desktop.
Git cheat sheet

Pulling from a branch

git pull origin branchname

Creating a new branch

git checkout -b newbranch

Check your changes

git status

Commit your changes

git add filename.ext
git commit -m 'your commit message'

Pushing your changes

git push origin newbranch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment