Accessing gitbash commands through conemu

2

1

I have tried to access gitbash command using conemu terminal, but I am unable to do so for some reason, it does not work for me.

I check all the answers given including this Git Bash Here in ConEmu which seemed to work for most people, so I am looking for alternative.

I thought if I could click Ctrl + right click, then add new console and paste the link to C:\Program Files\Git\bin\sh.exe all would work, but it does not recognize any of the git commands, like git status, ls ...

I am kinda new to this, I used console2 before, but now I am having problems with software.

Bimlik

Posted 2014-03-24T17:57:07.160

Reputation: 87

Git was working in console2? Run the same shell command in ConEmu. That's all. – Maximus – 2014-03-24T18:49:16.610

@Maximus No, I never used Console2 with git, just console2 alone. I've read all the blogs at hanselman and was hoping you would turn out to help me here

– Bimlik – 2014-03-24T18:56:27.917

Answers

2

Add the folder where your git.exe is located (probably C:\Program Files\Git\bin\) to system PATH and restart the shell.

astronaut

Posted 2014-03-24T17:57:07.160

Reputation: 136

Also, it's much better to run ...\sh.exe --login -i. Without arguments bash is not initialized for "interactive working". – Maximus – 2014-03-24T22:03:29.377

@astronout, Thanks I thought it was harder than that, when I saw the git-specific configs in other tutorials. I wander why anyone didn't recommend this approach. And thanks for Maximus for creating this great tool – Bimlik – 2014-03-26T17:57:15.950

I have two more questions though, one the command clear does not work on conemu and second, is there anyway to access putty, since the above advice does not correlate to putty ? @Maximus – Bimlik – 2014-03-26T18:06:04.703

What do you mean by "does not work" and "access PuTTY"? @Bimlik – Maximus – 2014-03-26T22:17:03.777

@Maximus I meant if I enter the command "clear" on conemu it shows me this error message: "'clear' is not recognized as an internal or external command, operable program or batch file." I also found out today, that vi gives the same error. In gitbash I could do vi README.md and have the contents of the readme file edited, but not while using conemu. I guess it does not emulate all gitbash's functionality. About Putty: I just wanted to an ssh access to my centos server in Virtual box using conemu, the same way I use putty to access it. – Bimlik – 2014-03-27T16:50:18.147

Gitbash? Run it in ConEmu the same way you run it without. All commands will be accessible. If not - why not to find "clear.exe" and add its path to %PATH%? As for PuTTY I still can't understand your problem. Just run PuTTY, nothing special. – Maximus – 2014-03-27T20:53:34.537