GIT Push如何工作? [英] How does GIT Push work?

查看:229
本文介绍了GIT Push如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大型项目(几百MB),如果我使用远程GIT存储库,GIT客户端是否会推送整个目录,即使您只对一个文件进行小的更改?

I have a large project (several hundred MB), if I use a remote GIT repository, does GIT client push the entire directory even when you only make small change in a single file?

Thanks

Thanks

推荐答案

不,git客户端和服务器协商列出哪些对象已更改,那些被发送。你唯一需要传输的信息是绝对必要的,就是使用一个哑巴的HTTP服务器,并获取一个包含比客户端要求更多的对象的完整包。

No, the git client and server negotiate a list of what objects have changed, and only those are sent. The only time you transmit more than is absolutely necessary is using a "dumb" HTTP server, and fetching a complete pack that contains more objects than are required on the client.

http://book.git-scm.com/7_transfer_protocols.html 在技术上有一些关于协议的细节级别,如果你关心如何和为什么,应该给你更多的术语。

http://book.git-scm.com/7_transfer_protocols.html has some detail on the protocol at a technical level, and should give you the terminology to go further if you care about the how and why.

这篇关于GIT Push如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆