TortoiseGit Git 同步和拉取的区别?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13533008/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 14:58:02  来源:igfitidea点击:

Difference between TortoiseGit Git Sync and Pull?

gitsynctortoisegitgit-pull

提问by Jér?me Verstrynge

I am comming from a SVN environment and I am exploring Git with TortoiseGit.

我来自 SVN 环境,我正在使用 TortoiseGit 探索 Git。

When I right-click a 'checked-out' Git repository, I can perform a Git Synccommand, but also a Pullcommand.

当我右键单击“已签出”的 Git 存储库时,我可以执行Git Sync命令,也可以执行Pull命令。

What is the difference between those two functions precisely?

这两个函数之间究竟有什么区别?

采纳答案by linquize

TortoiseGit Sync Dialog can perform multiple synchronization operations in one dialog, including

TortoiseGit Sync Dialog 可以在一个对话框中执行多个同步操作,包括

  • pull (or fetch or ...)
  • push
  • submodule update
  • 拉(或取或...)
  • 子模块更新

"Sync" is not a Git concept, it is unique to TortoiseGit only!

“同步”不是 Git 概念,它是 TortoiseGit 独有的!

TortoiseGit Pull Dialog only performs pull operations, but it has more advanced options for the users to choose.

TortoiseGit Pull Dialog 只执行拉取操作,但它有更高级的选项供用户选择。

回答by Lazy Badger

I haven't TortoiseGit, but, from mind: Pull is unidirectional data-transfer (from remote to local), Sync (as it written) is bidirectional (pull+push) and publish local changes into remote

我没有 TortoiseGit,但是,我想:拉是单向数据传输(从远程到本地),同步(如它所写)是双向的(拉+推)并将本地更改发布到远程