cli icon indicating copy to clipboard operation
cli copied to clipboard

Heroku login through git

Open surya-ra opened this issue 6 years ago • 5 comments

Not able to connect to heroku using Git CLI but it is working on cmd.exe.
Error(Git CLI): dilabuser4@dilabss01 MINGW64 ~/Desktop/ProjectsSurya/SmartAssetApiAi (master) $ heroku --version bash: heroku: command not found

Solutions I tried:

  1. I checked echo $PATH, it didn't show heroku path. So, I added the path using PATH="$PATH:/c/Program\ Files/Heroku/bin" Path got added but still the problem persists.

heroku

  1. I also tried winpty heroku login. Did not work either. dilabuser4@dilabss01 MINGW64 ~/Desktop/ProjectsSurya/SmartAssetApiA i (master) $ winpty heroku login winpty: error: cannot start 'heroku': Not found in PATH

Can't figure if i am missing something!

surya-ra avatar Jun 08 '18 07:06 surya-ra

it looks like you're adding a backslash that doesn't need to be there

jdx avatar Jun 09 '18 21:06 jdx

@jdxcode I think that is the way to denote space in Git CLI. This is what happens when i don't use that backslash $ /c/Program Files/ bash: /c/Program: No such file or directory

With backslash $ /c/Program\ Files/ bash: /c/Program Files/: Is a directory

surya-ra avatar Jun 11 '18 05:06 surya-ra

in the PATH output it looks like it has a backslash where nothing else does. I'm not very familiar with git bash but that definitely looks like the problem

jdx avatar Jun 13 '18 04:06 jdx

any solution yet?

amalmohann avatar Sep 21 '21 17:09 amalmohann

run heroku login on git/cmd without the winpty

AbdulConsole avatar Oct 04 '21 23:10 AbdulConsole