Compare GIT bare repo and retultibutor bitbucket

How can I make sure my bare repo and my bitbucket replication are identical?

The first thing I did was look at the logs, but that might not be enough.


source to share

1 answer

  • create a local repository
  • add a remote for your bare repository
  • add a remote for the Bitbucket repository
  • fetch from both repositories.
  • make sure the relevant branches point to the same as the commits

I would do it like this:

git init
git remote add bare $bareuri
git remote add bitb $bitbucketuri
git fetch --all
gitk --all


I would expect to bare/master

point to the same message as bitb/master




All Articles