kreamweb
3/15/2011 - 9:26 AM

clonare un branch

clonare un branch

mkdir $BRANCH
cd $BRANCH
git init
git remote add -t $BRANCH -f origin $REMOTE_REPO
git checkout $BRANCH

oppure
mkdir newrepo.git
cd newrepo.git
git init
git remote add origin file:///path/to/original 
git fetch origin branchiwant:refs/remotes/branchiwant
git checkout -b branchiwant --track origin/branchiwant