Forcing git top-level
- From
- Cedric Gava <gava.c@free.fr>
- Date
- Mar 31, 2015, 09:25 UTC
- Message-ID
- <0FD999DB-3DBF-40D4-8128-715BDC49EAAB@free.fr>
Hello
I’ve copied a .git folder located at the root (/) of a filesystem, into another directory (/home/mydir). If I issue a git rev-parse —show-toplevel I got "/"... I would like to change the top-level to point to /home/mydir.
I’ve also tried to bare clone the original .git folder, but the new git repo stills points it top-level to "/".
Thank you for your answer
Best regards Cedric