- create a local repository
- add a remote for your bare repository
- add a remote for your bitbucket repository
- fetch from both repositories.
- verify that the corresponding branches point to the same commits
I would probably do it like this:
git init
git remote add bare $bareuri
git remote add bitb $bitbucketuri
git fetch --all
gitk --all
I would expect bare/master
point to the same commit as bitb/master
, etc.