Given: Emacs 28.1
Windows 11
git version 2.47.1.windows.1
Here my init.el
;; https://github.com/Malabarba/smart-mode-line
(use-package smart-mode-line
:ensure t
:config
;;(setq sml/theme 'light)
(sml/setup))
;;https://github.com/10sr/git-ps1-mode-el
(use-package git-ps1-mode
:ensure t
:config
(git-ps1-mode t))
If in dired mode open directory contain .git folder then git branch show in the modeline.
This is because I use package git-ps1-mode. But this work only on Linux.


gitin $PATH? IOW, if you open Windows terminal and executegit --help, do you see a git help message?*Messages*buffer for warnings or errors, I presume it should have something on the matter.