English 中文(简体)
更新一个光彩的储存库,存放在一只高衣的边远存放处
原标题:Updating a bare git repository from a git-svn cloned remote repository
  • 时间:2011-09-22 22:32:33
  •  标签:
  • git
  • git-svn

我有一个偏远的SVN存放处(X),在那里自由开发商正在从事其工作。 然而,在我的公司中,我们与GIT合作,并利用git-svn与GIT和SVN合作。 !!

因此,我把SVN存放处(X)装入GIT当地存放处(A)。 之后,我把当地盖特存放处(A)变成了当地的GIT光存放处(B),以便能够从各地通过SSH从那里提取。

问题在于:每当开发商承诺给他的特别志愿人员国家存放处时,我就“git svn fetch && git svn rebase”,以便更新当地保留(A),但我可以向A.A.的当地光存库(B)提供最新情况。

Any ideas?

我希望我的发言足够清楚。 感谢!

问题回答

在Gite,合并需要一份工作副本,以便实际完成合并(因为可能发生冲突)。 这可能是因为你可以在你 bare的存放处(B)内合并。

What you can do is merge in your working repository (A), then push the result of the merge to repository (B).

Simple answer - You can push from A to the bare repository B.

You may install SubGit into your repository X, so that a bare Git repository (Y) will be created on that machine, so that syhchroinzation X<->Y will be performed automatically. So you may use Y as a replacement of B or sync them by running "git pull --all " on B periodically. The repository A is redundant in this case.





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签