说“拉"有点“合并"是正确的吗? [英] Is it correct to say that «pull» is kinda «merge»?

查看:67
本文介绍了说“拉"有点“合并"是正确的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说推"有点合并"是正确的吗?我看到的唯一区别是:合并"是对本地分支的操作​​,而推"是对本地和远程分支的操作​​.

Is it correct to say that «push» is kinda «merge»? The only difference, that I see: «merge» is operation on my local branches, «push» is operation between local and remote branch.

我的理解正确吗?

推荐答案

git pullgit fetch + git merge的别名.

git fetch使用更改(增量)更新本地存储库,这些更改是从远程存储库下载并存储在本地.git文件夹中的.

git fetch updates your local repository with the changes (delta) which are downloaded from the remote repository and stored inside your local .git folder.

一旦提取结束,并且您在本地拥有了所有数据,就会出现git merge并将您的更改与远程的更改合并.

Once the fetch is over and you have all the data locally, then git merge occurs and merges your changes with the one from the remote.

这篇关于说“拉"有点“合并"是正确的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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