I use Ubuntu 18.04
with filesystem ext
and git 2.26.0
. I want to add a macOS Framework to my git repo, which fails with the following error message:
$ git add -f /var/opt/project1/Foo.framework/Headers/Interior.h
fatal: pathspec '/var/opt/project1/Foo.framework/Headers/Interior.h' is beyond a symbolic link
The root of the project is located under /var/opt/project1
. This is what ls
returns:
Foo.framework $ ls -l
lrwxr-xr-x Headers -> Versions/Current/Headers
lrwxr-xr-x Resources -> Versions/Current/Resources
drwxr-xr-x Versions
The actual command is executed by a system service, so I need to make this work on the Ubuntu machine. Any idea what I am doing wrong?