I have a private git repo, access with ssh. ( eg git@myhost.com:/home/git
)
There is a PHP project in it. My develop & deploy machine is both linux. It's works well for about half a year.
But these days, when I run git pull
(or clone
to other place), files in project root "becomes" symbolic link.
Hard to explain. So paste these:
ls -al
Some of output:
drwxr-xr-x 10 nginx nginx 4096 Jan 20 22:08 App
drwxr-xr-x 10 nginx nginx 4096 Jan 20 22:08 .git
drwxr-xr-x 10 nginx nginx 4096 Jan 20 22:08 Core
lrwxrwxrwx 10 nginx nginx 4096 Jan 20 22:06 index.php -> <?phpdefine('APP_PATH','./App');define(..........(FULL content OF index.php)
lrwxrwxrwx 10 nginx nginx 4096 Jan 20 22:08 .gitignore -> # ide.idea#temp files_runtime*.log..........(FULL content OF gitignore)
I know linux symbollic link is a file that contains the "target file path" and have a special "flag".
Every time I pull
/reset
, git
will mark these files as symbollic links (which is really a normal file), and I don't know how to remove that flag.
This only occurs for files in project root (beside .git
dir), for ALL of them.
Can someone help me with what's happened to my git repo?