tpope / vim-fugitive

fugitive.vim: A Git wrapper so awesome, it should be illegal
https://www.vim.org/scripts/script.php?script_id=2975
20.03k stars 1.01k forks source link

[Question] Is there any way to manage Git dir? #2350

Open KSR-Yasuda opened 1 week ago

KSR-Yasuda commented 1 week ago

By some command or variable, could I { reset , force-set , check } Git dir that fugitive script manages?

Accidentally, sometimes it misunderstands Git root dir.

No specific way to reproduce, but, for example, likely to happen in the cases below:

Once it goes wrong, perhaps it memorize the status somewhere, it hard to correct the wrong Git root dir path except restarting Vim.

To cover up such cases, can I manage the Git root dir manually?