Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between TortoiseGit Git Sync and Pull?

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

When I right-click a 'checked-out' Git repository, I can perform a Git Sync command, but also a Pull command.

What is the difference between those two functions precisely?

like image 373
Jérôme Verstrynge Avatar asked Nov 23 '12 16:11

Jérôme Verstrynge


People also ask

What is the difference between git Sync and git pull?

Git pull is a git fetch followed by git merge - read here. Git fetch fetches info about remote repositories - read here. Git sync does everything in one command meaning pull and push read here.

What is pull in TortoiseGit?

The difference between pull and fetch is: Fetch just downloads the objects and refs from a remote repository and normally updates the remote tracking branches. Pull, however, will not only download the changes, but also merges them - it is the combination of fetch and merge (cf. the section called “Merging”).

What is git sync?

git-sync is a simple command that pulls a git repository into a local directory. It is a perfect "sidecar" container in Kubernetes - it can periodically pull files down from a repository so that an application can consume them. git-sync can pull one time, or on a regular interval.

Is TortoiseGit and git same?

TortoiseGit is a Git revision control client, implemented as a Windows shell extension and based on TortoiseSVN. It is free software released under the GNU General Public License.


1 Answers

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

  • pull (or fetch or ...)
  • push
  • submodule update

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

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

like image 61
linquize Avatar answered Oct 15 '22 21:10

linquize