'git init' - Create local repo 'git add'- Add modified files to index(staging) 'git commit' -m "message" - commit to local repository 'git status'- see status of local repository 'git log'- view commit log git log --oneLine- Compact view of commit log 'git remote add origin URL' - Connect local repository to remote URL
- 'git branch' - Show branches, current branch
- 'git branch branchName' - Create branch 'branchName'
- 'git checkout branchName'- check out the branch
- 'git checkout -b otherBranch' -Create and checkout 'otherBranch' 'git pull origin otherBranch'- pull remote otherBranch 'git pull origin master' - pull remote master into local branch to resolve conflicts 'git push origin otherBranch'- Push local branch to Github; go to Github and create pull request