比较GIT裸回购和bitbucket回购 [英] Compare a GIT bare repo and bitbucket repo
本文介绍了比较GIT裸回购和bitbucket回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能确保我的裸回购和我的bitbucket回购是相同的?
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?
推荐答案
- 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
我可能会这样做:
git init
git remote add bare $bareuri
git remote add bitb $bitbucketuri
git fetch --all
gitk --all
我期望 bare / master
指向与 bitb / master
等相同的提交。
I would expect bare/master
point to the same commit as bitb/master
, etc.
这篇关于比较GIT裸回购和bitbucket回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文