'Strange GIT behaviour in VS2022 - Shows error but still completes action
I'm having a strange problem with Git i VS2022 and VS2019. When I Push, fetch or pulls I get a error saying "failed to fetch from the remote repository. see the output window for more details" - This is the message for fetch but almost the same for the other operations.
The stange part is that the operation is a succes - Git fetches, pulls and pushed fine and I can see the change in the project and on dev.azure.com where my repository is.
The output windows gives nothing despite the error message.
I've tried signing out from VS but the problems.
Solution 1:[1]
Solution 2:[2]
Changing the credential helper didn't fix it for me, but this command did. For example, to fix it for a project in directory {project-directory}:
git config --global --add safe.directory {project-directory}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Birger |
Solution 2 | Suraj Rao |