Saturday, May 24, 2014

Github switch between branches after cloning repo

git clone <somerepo> .
git branch -a // View all branches
git checkout -b <branch_name> origin/<branch_name>

No comments:

Post a Comment