Practical Web Programming

Wednesday, August 07, 2013

git: Checkout a branch from a remote repo

If you already pushed a feature branch to origin and the deleted that branch in your local repository, you can get a copy that branch to your local using this git command:

$ git fetch origin
$ git checkout -b feature_branch_name origin/feature_branch_name

0 comments:

Recent Post