-1

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.

rider change window showing all of the generated changes

3

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.