V
V
vista1x2019-04-02 17:24:59
git
vista1x, 2019-04-02 17:24:59

How to use symbolic links in a project under git?

There is a git repository that is cloned to the ubuntu server and works without problems.
But here it was necessary to move one of the directories of this project to another disk and make a symlink so that everything works as before. But the fail-git does not perceive this symlink in any way and thinks that the directory was simply deleted. How to fix the situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2019-04-02
@vista1x

git knows what symlinks are and bypasses them :)
or make a hardlink for each file.
or mount the directory via mount bind, such a connection should be swallowed by git.

D
Dmitry, 2019-04-11
@dlnsk

Make a link in the opposite direction - from the endpoint to a folder inside the git repository.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question