1

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?

zabumba
  • 12,172
  • 16
  • 72
  • 129
  • I'm guessing you mean the entire repo, including all history, not just the respective HEADs? – tvon Apr 30 '14 at 15:15
  • good point. I may need that indeed. – zabumba May 01 '14 at 00:12
  • There is always a few "far too smart" trolls that bother to vote down a question that received a great answer. They should instead Vote UP the great answer, that is even if they find my question too stupid to be asked. – zabumba Apr 18 '16 at 11:52

1 Answers1

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

michas
  • 25,361
  • 15
  • 76
  • 121