Because I can never remember.™
git checkout -b develop
|Create a new branch
develop and switch to it; can be done after local modifications.
git push -u origin develop
|Push the branch (after committing).
|See existing local branches that have been checked out or created.
git remote show origin
|See what remote branches are being tracked even if they're not checked out locally.
git fetch --all git checkout develop
Fetch and check out a remote branch
develop if it's not already tracked.
git checkout develop
Check out an existing tracked branch named
git checkout master git merge develop
# local git branch -D branchname
|Delete a branch.