简体   繁体   English

Github是否上传整个文件?

[英]Does Github upload the whole file?

I released a asp.net application's source code to Github by packing all it's source code to a zip file because for some reason I couldn't do it the normal way. 我通过将所有源代码打包到zip文件中的方式将asp.net应用程序的源代码发布到了Github,因为某些原因,我无法以正常方式进行此操作。

Now i changed a few files inside that archive (which is quiet large) and i commited changes and expected a large file upload but Github GUI did it all in few seconds. 现在,我更改了该存档中的几个文件(文件很大),并且提交了更改并期望上传大文件,但是Github GUI在几秒钟内完成了所有操作。

Now my question is does git upload the whole zip file or what? 现在我的问题是git是否会上传整个zip文件或什么? how is this possible to only upload parts of an archive and yet achieve the same result as uploading it all?? 这怎么可能仅上传档案的一部分而又获得与全部上传相同的结果?

Git does not upload whole files, it uploads changes to files only. Git不会上传整个文件,它只会将更改上传到文件。 If you change part of a file, only the space required to show that change will be used. 如果更改文件的一部分,将仅使用显示该更改所需的空间。

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

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