I have .lnk files in my git repo. And other users are able to use them after cloning the repo successfully.
However, once you have used it (clicked on it for example), it automatically becomes modified in git. Is there a way to avoid this?
In general, what is your best practice for tracking .lnk files in git? Or is there a better alternative?
You can point git to assume that this lnk
file is unchanged by:
git update-index --assume-unchanged <lnk-file>
You can undo that by:
git update-index --no-assume-unchanged <lnk-file>
I think you should avoid upload lnk
files to git because they are easily generated. so you should make a batch script for generating them and point anyone in documentation to run that script after downloading code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With