0

I am still pretty new to Git & repositories and currently hitting a wall with trying to configure Visual Studio Source Control.

My problem is that whenever someone pushes a commit to the master (or a branch), the commit gets automatically pulled and merged on every machine. Incoming is always at (0). I tried my best to search for a solution online but couldn't find anything that worked. In my old company, everything was set up so we could manually fetch and pull everything.

How can I do this in Visual Studio 2022? (We are using Azure DevOps in Visual Studio for our projects.)

5
  • 1
    Wow, that seems like a very poor choice of configuration. I've never even heard of auto-sync that would pull and merge automatically like this. It would drive me insane! Commented Jan 17, 2022 at 14:39
  • I would ask your IT department. This seems so unusual, I am thinking it has to be the result of some corporate policy and something that's been deployed on your network. If so, they should know how it's deployed and how to configure it. Commented Jan 17, 2022 at 14:42
  • Maybe your IT department is (ab)using git to sync document folders (like with onedrive or similar tools). For this it would make sense, but certainly not for source code. Commented Jan 17, 2022 at 14:51
  • Are you sure it's VS that's doing the sync? Commented Jan 18, 2022 at 5:21
  • To summarize what happened here: Question: "Why is it automatically syncing?" Answer: "Oh... It's because I was manually pressing the Sync button." I love how genuine this is. Surely everyone has had moments like this in their lives at some point. Commented Feb 24, 2022 at 22:45

1 Answer 1

1

Thank you so much. I talked to IT which I should have done in the first place.

The problem was user-input-related. To be specific, I mixed up the "Refresh" and the "Sync" buttons in the new Visual Studio UI. Which (in my defense) do look very similar. So I was hitting Synchronize instead of Refresh on the machines 😅

Problem solved.

Sign up to request clarification or add additional context in comments.

2 Comments

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
Yeah, the gui could really just say fetch and pull instead... I prefer just using the command line for exactly this kind of reason

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.