简体   繁体   English

取消了一个git-clone,下载的文件在哪里?

[英]Cancelled a git-clone, where are the downloaded files?

I just cancelled a git-clone while it was receiving objects, using ^C on my Mac OSX 10.6.8. 在我的Mac OSX 10.6.8上使用^ C时,我刚刚在接收对象时取消了一个git-clone。 Git had already download 1.2GB, according to the "receiving objects" line. 根据“接收对象”行,Git已经下载了1.2GB。 I'd like to remove these files, since that's a big chunk of memory, but I can't find them anywhere. 我想删除这些文件,因为这是一大块内存,但我无法在任何地方找到它们。

The folder I was cloning them to hadn't been created yet, and there is no obvious .git- xyz folder in the parent directory that could hold them. 我正在克隆它们的文件夹尚未创建,并且父目录中没有明显的.git- xyz文件夹可以保存它们。

Any thoughts? 有什么想法吗? Or are they just in some OS-defined temporary folder and will get cleaned up automatically at some point? 或者它们只是在某些操作系统定义的临时文件夹中,并且会在某些时候自动清理?

as one of the commenters said, for a git clone git://foosite/fooproj, git will create a directory called fooproj/.git and download all the repo files into there. 正如其中一位评论者所说,对于git clone git:// foosite / fooproj,git将创建一个名为fooproj / .git的目录,并将所有repo文件下载到那里。

the second stage of clone is a "checkout" of the origin/master branch usually, but since your ctrl-c was caught by the app, the directories were likely deleted, and no checkout was done. 克隆的第二阶段通常是原始/主分支的“结账”,但由于您的ctrl-c被应用程序捕获,目录很可能被删除,并且没有结帐。

ie if 即如果

$ ls -a fooproj $ ls -a fooproj

doesn't yield anything, then the files were already deleted. 不产生任何东西,然后文件已被删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM