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