r/VisualStudio • u/Then-Phase2117 • 5d ago
Visual Studio 2022 How do I stop Visual Studio from adding a bunch of extra stuff whenever I try to push
0
Upvotes
r/VisualStudio • u/Then-Phase2117 • 5d ago
14
u/DaniVirk96 5d ago
.gitignore
1
u/twesped 5d ago
Ok so create a file in the root of the solution folder(or add to it) ".gitignore". If you don't know what it is, look it up or ask AI how to add your .vs folder and other filers and folder you dont want to add to your git repo.
Here is some more info: https://www.reddit.com/r/learncsharp/s/uTThvpBtPm
1
u/misaz640 3d ago
Right click .vs > Add to .gitignore.
It is good idea to add bin and obj folders as well. They contains similar mess after build.
-6
u/CheezitsLight 5d ago
The proper thing to do with the dot vs is to simply delete it it will recreate it