I’ve had to look up this on StackOverflow twice in the last week. I thought it’d be a good idea to jot down some notes so I can remember what to do next time.
1. Add the remote repo
git remote add louie email@example.com:louiebao/dbarsenal.git
2. Get all the branches for the new remote repo
git fetch louie
3. Create a new branch locally that tracks the remote branch
git checkout -b demo louie/demo
git branch -v -v