20

I just download this version Git-2.6.1-64-bit.exe my OS is windows 10 64bit.. why I cannot still log in it? is Git-2.6.1-64-bit.exe the latest one?

before it was MINWG32 now updated become MINWG64 but still I cannot login..help me solve this issues

I don't have any solution for this instead to use the cmd.exe.... but I need the flow of it...coz some of the commands cannot run in this environment...it's a big difference between a Linux-like environment... please post procedure/steps in deploying apps in heroku.

IT SAYS : Login is currently incompatible with git bash/cygwin In the meantime, login via cmd.exe https://github.com/heroku/heroku-cli/issues/84

  • What's the question here? That linked issue clearly indicates what the problem is, what the workaround is, how you can use git bash/cygwin even with the workaround, etc. What more are you looking for? – Etan Reisner Jan 14 '16 at 15:26

8 Answers8

32

login through the windows command prompt first, then you will be able to run heroku commands on git Bash.

Uziel Valdez
  • 2,040
  • 1
  • 15
  • 20
15

Simple fix. Install Heroku on Windows machine as per the site instructions. Then, with Git Bash closed, open the Windows "Command Prompt" and type "heroku login". You will be prompted for your Heroku username and password and you're in! Close the command prompt and use bash as per normal.

Firefly4266
  • 150
  • 1
  • 4
  • When I follow these steps and go back to Git Bash to execute "git push heroku master", I get: "fatal 'heroku' does not appear to be a git repository". Any idea what I'm missing? – Woodchuck Sep 25 '17 at 15:55
  • Actually, an update (to clarify): the above fatal error happened after I had first issued "heroku create" from another cmd line from the one where I did the push. When I issue the create and follow it with the push from the same Git Bash command line it seems to work! – Woodchuck Sep 25 '17 at 15:59
5

Instead of typing heroku login , i had to type winpty heroku login . And that solved my problem.

i.e

winpty heroku login
Ozesh
  • 6,536
  • 1
  • 25
  • 23
3

Try:

$ winpty heroku login

Source:

https://github.com/heroku/cli/issues/84

anjandash
  • 797
  • 10
  • 21
1

First, the latest releases are listed at https://github.com/git-for-windows/git/releases

Download PortableGit-2.7.0-64-bit.7z.exe, uncompress it to c:\git2.7.0, and add to your path:

set PATH=%PATH%;c:\git2.7.0\bin;c:\git2.7.0;c:\git2.7.0\usr\bin

Then launch git-cmd or git-bash.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

I always find CMDER works well and works first time with heroku, just a suggestion.

You can find the link here

Beep
  • 2,737
  • 7
  • 36
  • 85
0

login from windows cmd. I have been successful to login from cmd.

Zahirul Haque
  • 1,599
  • 17
  • 22
0

Following @Ozesh' solution, it seems best to define the following alias in your .bashrc-file to avoid the need for remembering to prefix the command with winpty:

alias heroku='winpty heroku.cmd'

(This was suggested in this response to the issue mentioned by @anjandash.)

Rene Hamburger
  • 2,003
  • 16
  • 17