megit icon indicating copy to clipboard operation
megit copied to clipboard

How to get a Git-Bash into MEGIT

Open SOFTWAREKOCH opened this issue 7 months ago • 3 comments

Hi,

i would like to have a Git-Bash inside MEGIT but i do not know how to do.

I already tried via "External Tools" in MEGIT which works except the fact that i can not start gist-bash.exe using the right working directory. I works with a Argument : --cd=C:\HOME\Development\MyProjects\laravel\TrustAPI_Test

For example : C:\HOME\Development\Git\git-bash.exe --cd=C:\HOME\Development\MyProjects\laravel\TrustAPI_Test => This works , but is very static

The problem is, that i can not use the MEGIT variable "$(get_dir) because it looks like the variable is always empty.

C:\HOME\Development\Git\git-bash.exe --cd=${git_dir} => This does not work

Image

For example in SourceGit they solve it the same way but their variable ${REPO} does the job.

Image

In my opinion the problem is, that the varibles in MEGIT are empty.

Any ideas are welcome.

Brgds Dietmar

SOFTWAREKOCH avatar Aug 24 '25 07:08 SOFTWAREKOCH

Hi, is anybody using MEGIT or am i alone ?

SOFTWAREKOCH avatar Aug 28 '25 18:08 SOFTWAREKOCH

Unfortunately, I don't have a good suggestion to address your requirement. I don't think the git repository location(s) are available as a variable, but I'm not sure.

planger avatar Aug 28 '25 18:08 planger

Hi,

the variables are all there, but they seem to be empty. The only var that is not empty is the var "eclips_home", the rest seems to be empty. I was testing may git GUIs but MEGIT is the best in my opion beside GitKraken.

Brgds Dietmar

SOFTWAREKOCH avatar Aug 28 '25 20:08 SOFTWAREKOCH