I've ran into an issue wherein Git believes that a file is beyond a symbolic link, and that, thus, it cannot be version controlled, but it appears to be a real file.
[root@r1 h]# stat -f conf/core-site.xml
File: "conf/core-site.xml"
ID: 5c7eb82882a6e866 Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 2735511 Free: 510158 Available: 371202
Inodes: Total: 694960 Free: 597972
Additionally, I've tried "readlink" to show the link pointer, but to no avail.
How does Git determine if a file is a symbolic link or not?
stat -f
shows information for the file system, not a particular file. So that output isn't really relevant. – Wessonnamei -l conf/core-site.xml
(from util-linux package) is an oddly named yet very handy command for such investigations: it lists type, permissions, name (similar tols -l
) for each dir/symlink/file in the chain the OS needs to resolve a given path. – Iseult