When running Emacs on Windows 10, I am able to launch git bash from within Emacs using the information given here, here, or here. For example, I can just add these two lines to my .emacs:
(setq explicit-shell-file-name "C:/Program Files/Git/git-bash.exe")
(setq explicit-bash.exe-args '("--login" "-i"))
Then, M-x shell
opens a git bash.
However, git bash always opens in its own window, not as a buffer within Emacs. This is undesirable as it breaks my workflow within emacs. It also, apparently, isn't what usually happens, judging by the experience of other users.
Any ideas on how I can get git bash to open up within emacs? Thanks!