4

Visual Studio 2022 not showing any change of file in git changes window, although there are some files updates are available. Whereas GIT GUI is showing all the changes in the repository.

Once I open the repository in GIT GUI all changes are also begin to display in Visual Studio git changes window.

Shyam Narayan
  • 769
  • 1
  • 12
  • 25
  • Have the same problem... making changes, but suddenly it's like there was an auto-commit and a push. – Keith Bluestone Nov 30 '21 at 12:51
  • Same issue here with VS 2022 17.2.1. Solution was installing latest Git Bash. And adding back exception directory for the unsafe repository. `git config --global --add safe.directory C:/xxx/xxxx` – Thiam Hooi May 23 '22 at 04:35

4 Answers4

5

visual studio 2022 shows "error parsing the git status output.". It is maybe because of mismatched versions of git or visual studio.

as a workaround, in "Package Manager Console" you can run this command:

git status

after that, visual studio shows your changes, and you can commit them!

  • Funnily, this fixed several 'git' issues I was experiencing after upgrading to Visual Studio 2022. Thank you! – CANDIMAN Mar 07 '22 at 04:54
3

I ran into the same issue. Then I found the answer under this video. Try this:

git config --global --add safe.directory C:/Path/To/Repo

Notice the forward slashes.

0

It might be an issue with the git index lock. This solved my problem, deleting the index lock file: Visual Studio: Git Team Explorer does not show any changes

Keith Bluestone
  • 166
  • 2
  • 9
  • Deleting index lock file does not resolve my problem, after deleting index lock file it showing all files removed from repository rather than changes. – Shyam Narayan Dec 03 '21 at 05:22
0

I used to connect not as admin. Then in Git Repository Settings no remotes were displayed and at Git Changes there were only "create new" options.

Then I connected as admin and remotes become available, all were working as usual. Makes no sense to me but it's "working".

Saulius
  • 1,408
  • 18
  • 29