The Git tab in RStudio (next to "Environment", "History", etc.) suddenly disappeared. I don't know what did this, and I can't figure out how to put it back. Restarting RStudio doesn't change anything.
Moreover, this mistake made Git unavailable when using the IDE, e.g creating a project with ticking "Create a git repository" generates an error: "Incorrect function". This is strange because in global options, I can still see the path to the Git executable. In project options, the version control system is automatically put on "None" and if I change it to "Git", the same error "Incorrect function" appears.
usethis::use_github() to initiate git work, but the Git pane still doesn't appear in RStudio.
What should I do?
Edit: following this answer, I tried to reset RStudio's state by renaming the "RStudio" folder as "RStudio-backup" and restarting RStudio. This didn't work, the "Git" pane is still not displayed.