rackeric / git-cheat-sheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-cheat-sheet

git work flow

  1. fork the repo via the UI.
  2. clone the repo
git clone http://github.com/user/repo
  1. create a branch for edits
git checkout -b branchname
  1. make edits to repo
  2. see files changed
git status 

and

git diff
  1. add files to the stage to be commited
git add filename
  1. see step 5 to confirm the file has been added to the stage. they should be showing in green now.
  2. commit the change
git commit -m "descriptionofchange"
  1. see commit in git history
git log
  1. push the change to your fork (default name origin for your fork)
git push origin branchname
  1. at this point, your changes are in the fork repo and you can go the UI to create a Pull Request.

About