git fetch origin && git checkout -b name-of-new-feature-branch origin/release
or
git fetch origin && git checkout -b release origin/release
Check out someone elses branch:
git fetch origin && git checkout name-of-branch
git rebase -i HEAD~x change the word pick to drop for the commit we want to drop https://stackoverflow.com/questions/2938301/remove-specific-commit
Put commits in a different order
git rebase -i HEAD~3
Where 3 is the number of commits that need reordering (source).
This will open vi, listing commits from oldest (top) to newest (bottom).
Now reorder the lines, save, and exit the editor.
ddp will move current line down
ddkP will move current line up (source)