zabumba
zabumba

Reputation: 12402

Compare a GIT bare repo and bitbucket repo

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?

Upvotes: 2

Views: 1019

Answers (1)

michas
michas

Reputation: 26505

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

Upvotes: 3

Related Questions