git-command: add git--command-get-major-mode and do not always use term-mode