C
C#2mo ago
Faker

✅ .gitignore file not ignoring .ddl files in rider

Hello guys, I generated a dotnet new gitigignore file but it seems that the .ddl files aren't ignored, is that normal? Have a look in the picture.
No description
3 Replies
Jimmacle
Jimmacle2mo ago
dotnet new gitignore creates a gitignore designed for .NET projects you can modify it to tailor it to your project a .gitignore will also not cause tracked files to stop being tracked, if you already committed build artifacts you have to remove them manually
Angius
Angius2mo ago
If you already have all the files tracked by Git, a gitignore won't un-track them git rm -r --cached will un-track all files, then git add . will track them all again, this time according to the gitignore
Faker
FakerOP2mo ago
oh ok I see Yeah it works, thanks guys, really appreciate 💯 Thanks for the command, it will be useful in the future, will just note it down

Did you find this page helpful?