22 October 2012

Cloning a specific GIT branch from a repository

Step 1 : Clone the master branch
git clone <repo master>
Step 2 : Clone the specific GIT branch
git fetch origin +branchname:branchname
Step 3 : Switch to the branch
git checkout branchname
Step 4 : Check the file difference between the master and the branch 
git diff --name-status master..sibos