Generating a New ssh Key.
ssh-keygen -t rsa -b 4096 -C "firstname.lastname@example.org"
Setting a Git branch to Track to a Remote.
Given a branch localfoo, the first command shown is for tracking to the remote upstream. The second shows the command if setting without the localfoo being the current branch.
Longform Git Branch Tracking Commands.