English 中文(简体)
同时,从不同地点吸引和推进同样的远程回响
原标题:concurrent git pull and push on same remote repo from different locations
  • 时间:2011-05-17 08:26:17
  •  标签:
  • git

Suppose I m pulling or cloning from some remote git repo What happens if 1) after I started pulling/cloning - someone start to push to that remote repo in the middle? 2) while someone is in the middle of pushing code to remote git repo - and I start pulling cloning it?

What do I end up with in each of the cases?

增 编

问题回答

这两种情况都没有问题。 在1起案件中,有一点是,当有人开车时,重新投标(通常称为分支名称)得到更新,任何单体(衣物和拉皮条的一个基本部分)在那个时候或之后将获得旧价值。 只有在其所需的所有物体都位于遥远的存放处物体数据库时,该反射才会得到更新,因此没有问题。 2) 同样,如果你拖拉的手法是在被推向新方向之后发生的,那么你就会拿到新的价值,否则你就拿到了旧的。

(其中一项可能的例外情况是,“dumb HTTP”的运输,在每次推进之后,你需要在遥远的存放处操作git Update-server-info





相关问题
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 ...