Question

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

First thing I did was to look at the logs, but that may be not enough right?

Was it helpful?

Solution

  • 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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top