Git-it | Branches aren't just for birds

A diagram showing a horizontal line, representing the main-branch, with another line branching off the top and later re-joining the original. Another line branches off the main-branch line from below and yet another branch branches off of that. Both of these meet back up with the original main line, too.

http://githubusername.github.io/repositoryname

git branch <BRANCHNAME>

git checkout <BRANCHNAME>

git status
git add <contributors/FILENAME>
git commit -m "commit message"

git push origin <BRANCHNAME>

    git add -A
    git commit -m "move file into contributors folder"

    git branch -m <NEWBRANCHNAME>

    • git checkout -b <BRANCHNAME>
    • git branch <BRANCHNAME>
    • git checkout <BRANCHNAME>
    • git branch
    • git branch -m <NEWBRANCHNAME>
    • git status