add branch to someone else's github code example
Example: git checkout someone else's branch
git fetch origin
git checkout -b <name-your-branch> origin/<name-of-remote-branch>
git fetch origin
git checkout -b <name-your-branch> origin/<name-of-remote-branch>