Thursday, 2 January 2014

how to pull from an existing git repository

how to start from scratch by pulling branches from an existing git repository
 
mkdir /path/to/your/project 
cd /path/to/your/project 
git init 
git remote add origin ssh://git@bitbucket.org/username/bbreponame.git
 
 
Then check out as local branches
git checkout -b LocalName origin/remotebranchname 

No comments:

Post a Comment