Remove M-g dired-mode-map to make Git commands behave in Dired mode.