I have two git repositories in one folder. I am able to relocate the .git
directory and work with both repos using --git-dir=/path/to/.git
and --work-tree=/path/to/code
. However, i can't find any options to relocate the .gitignore
file, which is currently in the root path of the repositories and is considered by both of them. I also thought about using -c <.gitignoreOptionWhichIDontKnow>="/path/to/.gitignore"
but cannot find any options to relocate my .gitignore file.
Is it possible to relocate .gitignore file?