How to ignore .Dll,.PDB files while commit to Git using Visual Studio.
Only we are getting conflicts with .Dll files. Also I added .gitignore file. But it not working for .Dll and .pdb files.
Please help me...
How to ignore .Dll,.PDB files while commit to Git using Visual Studio.
Only we are getting conflicts with .Dll files. Also I added .gitignore file. But it not working for .Dll and .pdb files.
Please help me...
It's indeed not a good idea to add binary files in Git, especially if they change often.
To avoid being bothered by it, you should indeed use your .gitignore
file. It should contain the following lines:
*.dll
*.pdb
(note that we can use wildcards (*
), hence we don't need to specify the name of each file)
In a brand new repo it would be enough. In your case, since you already committed those files, git will likely continue to take them into account, so you should also remove them from git, with the command git rm <your_file.dll>
Long story short: add a commit where you