English 中文(简体)
你如何利用Gite从邮袋中取回一个(或几个)档案? [复制]
原标题:How do you use Git to retrieve just one (or a few) files from a repo? [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
Partial clone with Git and Mercurial

我转而到我像我的邮袋一样被复制到的具体目录,然后尝试如下:

    git clone [email protected]:path/to/file.java

但是,它给ERROR:没有发现存放处

谁能告诉我什么进展,什么是正确的事情? (没有什么背景不伤害!)

问题回答

你也许想看一下我相信在Gite 1.7实施的所谓“par”检查。 在此之前,我并不认为你允许这样做,尽管在座各位总是可以通过打开档案和保存其网站接口复制个人档案。

git works at the repository level, not at the file level (unlike CVS/SVN).

As a result, if you clone you usually clone the whole repo - and a change is tracked as a repository content change - not a simple file change.





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

热门标签