Symbolic links are not working in a few different ways. For example, if you have a broken symbolic link that points to a non-existent file/folder and the target has a space in it when you run this command it fails:
$ git update-index --add link
link does not exist and --remove not passed
If you have a symbolic link to a file and the link is not broken you can run this command:
$ git update-index --add foo.txt
However, it adds it to the index as a regular file, not a symbolic link, which you can see by running a git status with either dgit or standard git. Note that the latter will also flag a type change as there is an inconsistency between the type of the entry in the index and what is on disk.
Symbolic links are not working in a few different ways. For example, if you have a broken symbolic link that points to a non-existent file/folder and the target has a space in it when you run this command it fails:
If you have a symbolic link to a file and the link is not broken you can run this command:
However, it adds it to the index as a regular file, not a symbolic link, which you can see by running a git status with either dgit or standard git. Note that the latter will also flag a type change as there is an inconsistency between the type of the entry in the index and what is on disk.