Hi @Tobias ,
Welcome to Microsoft Q&A!
In fact, switching between Git branches will cause Visual Studio to reload project files. Please update your VS2022 to the latest version to get a better Git experience.
Meanwhile, you can check if you have any anti-virus software or third-party extensions installed, temporarily disable them.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.