cli
cli copied to clipboard
Heroku login through git
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:
- 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.
- 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!
it looks like you're adding a backslash that doesn't need to be there
@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
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
any solution yet?
run heroku login
on git/cmd without the winpty