Git / How to set local branch to track remote branch

Git 1.7.0
git branch --set-upstream foo origin/foo

Git 1.8.0

git branch -u origin/foo foo

No comments:

Post a Comment