git - How to Exclude NuGet Content from Source Control -
i know nuget packages (at least nowadays) should not included in version control. how should exclude files package adds project?
for example: have .net mvc project uses bootstrap nuget package. adds css, js, , font files content, scripts, , fonts, respectively. should these files included in source control? if not, best way ignore them? (i'm using git on particular project.)
generally speaking, generated files should not tracked source control tool. here question addresses pros/cons of doing so.
you can ignore files , directories creating .gitignore file @ root of repo.
following example package above, ignore content adding .gitignore file:
content scripts fonts here more documentation on ignoring files git .gitignore.
you can populate .gitignore based on visualstudio project uses.
Comments
Post a Comment