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?
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.
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.
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.
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.
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).
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 agit 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.
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