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?
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.
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”).
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.
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.
TortoiseGit Sync Dialog can perform multiple synchronization operations in one dialog, including
"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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With