Just add the .vs folder to the .gitignore file.
Here is the template for Visual Studio from GitHub’s collection of .gitignore templates, as an example:
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
If you have any trouble adding the .gitignore file, just follow these steps:
- On the Team Explorer’s window, go to Settings.

- Then access Repository Settings.

- Finally, click Add in the Ignore File section.

Done. 😉
This default file already includes the .vs folder.
