Written by Supakorn Laohasongkram on September 8rd, 2014
Connecting your Local Git to Your GitHub Repository
git clone 'http'
Checking/Creating/Changing/Deleting Branch
git branch
git branch -b 'branch'
git checkout 'branch'
git push origin --delete 'branch'
Staging/Committing/Pushing Files
git status
git add -A
git commit -m "comment"
git push 'remote' 'branch'
Setting Up New Remote for Your Local Repo
git remote -v
git remote add upstream 'http'
Fetching Files from GitHub to Your Local Repo
git fetch upstream
git merge upstream/'branch'
git pull 'remote'
Dealing with Conflicts
git diff
git diff 'commit/branch'
* you actually make the changes in your text editor