I have a .dll file that is tracked and added to source control (so it's not being ignored anywhere). The problem is that I recently updated it but Sourcetree is not detecting that it changed.
I have a .dll file that is tracked and added to source control (so it's not being ignored anywhere). The problem is that I recently updated it but Sourcetree is not detecting that it changed.
git add -f
One reason is "*.dll" might be in your global ignore.
We can use git check-ignore to find out where the global gitignore file is.git ls-files . --ignored --exclude-standard --othersFirst, switch to command-line, using the latest Git for Windows, in a CMD session with a simplified PATH.
There, go to your repo root folder, and type, using git check-ignore :
git check-ignore -v -- path/to/your/file.dll
If that returns nothing, you are sure it is not ignored, and should be tracked.
Type, using git check-attr:
git check-attr --all -- path/to/your/file.dll
If that returns nothing, that means no .gitattributes directive would be influencing the diff which should be detected.
Make sure git status mentions that you are on a branch (instead of a detached HEAD)
Update Feb. 2019 for Git 2.21: Asking "git check-attr" about a macro (e.g. "binary") on a specific path did not work correctly, even though "git check-attr -a" listed such a macro correctly. This has been corrected.
See commit 7b95849 (18 Jan 2019) by Jeff King (peff).
(Merged by Junio C Hamano -- gitster -- in commit 02bf766, 05 Feb 2019)
That means, with Git 2.21, git check-attr binary file should return file: binary: set. (instead of file: binary: unspecified)
Look into nuget to get the 3rd-party dll out of git. Does the 3rd-party vendor provide a nuget feed for this assembly?
If not, It's worth asking them to start. If not, you can make one https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package
Do you already have private nuget feeds? If not it's worth looking into. https://docs.microsoft.com/en-us/nuget/hosting-packages/overview
You're going to be so much happier getting the derived artifacts out of source.