Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Sync Do in Team Explorer?

Tags:

I am currently in a project that uses TFS Git as the code repository. In Visual Studio, under Team Explorer -> Sync, there is an option called Sync. Now I am familiar with the Fetch, Pull, and Push actions but Sync is new to me.

Any ideas what this does behind the scenes?

like image 716
Josh Monreal Avatar asked Nov 13 '17 05:11

Josh Monreal


People also ask

What does Sync do in DevOps?

The One-Way Azure DevOps Sync provides a quick and easy way to import your work items from Azure DevOps into your roadmap. By setting up a Sync schedule, Roadmunk makes sure that your roadmap is always up to date with the most current Azure DevOps information.

What does Git sync do?

git-sync is used for syncing a personal fork with the upstream repository the personal fork was created from. Syncing here means updating all the branches in the personal fork that are also present in the upstream repository.

What is sync in TFS?

The synchronization engine performs three types of synchronization. This process captures and updates task-related and resource-related data in both TFS and Project Server while respecting the ownership of data by the project manager in the project plan.

What is commit and sync in Git?

Commit All and Sync: saves changes to local repository, pulls changes from the remote to sync with local changes, and then pushes changes to the remote repository.


1 Answers

Git in Visual Studio, VSTS, and TFS is standard Git. Although Sync isn’t a Git command, some GUI environments provide a sync button to both update your local files and push your local changes to your remote (your hosted repository).

enter image description here

The Sync button is available on the Team Explorer pane and and also displayed after you create a commit using the extension. The sync tool enables you to select how you want to update the project:

  • sync: performs a git pull and a git push.
  • fetch: performs a git fetch which retrieves any commits on from your remote without merging them.
  • pull: performs a git pull.
  • push: performs a git push.

You can also navigate to the Synchronization view from the Changes view by choosing Sync immediately after making a commit.

enter image description here

like image 65
PatrickLu-MSFT Avatar answered Oct 08 '22 09:10

PatrickLu-MSFT