I have a C# project that I pulled onto a new machine, even with no changes made by me, Rider is showing 856 files changed. They all seem to be auto generated to run on my machine, how can I disable this as it makes it difficult to keep track of my actual changes.
-
4You need a .gitignore file. For example, see: using-gitignore-with-rider-ide Or just google C# gitignore ryder for other suggestions/sample gitignore files.topsail– topsail2024-02-10 21:03:28 +00:00Commented Feb 10, 2024 at 21:03
-
gitignore.io coukd help also. Search for "visual studio"Philippe– Philippe2024-02-10 21:47:27 +00:00Commented Feb 10, 2024 at 21:47
-
Does this answer your question? Git for beginners: The definitive practical guideyivi– yivi2024-05-16 14:49:57 +00:00Commented May 16, 2024 at 14:49
Add a comment
|
1 Answer
Since this is a .NET project you can use dotnet new gitignore command in the root folder of your repo.
This will create a .gitignore file which yous should commit to your repo.
If you examine the created file you will be able to see the line that will make you obj folders ignored by git:
# Build results
[Dd]ebug/
[Dd]ebugPublic/
...
[Bb]in/
[Oo]bj/
You could also just download https://github.com/microsoft/dotnet/blob/main/.gitignore into your repo.
Please note that, if you already committed some of the auto-generated files you would have to delete them manually even if they match the filters in .gitignore.
