登录当前与 git bash/cygwin 不兼容

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34792563/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 14:06:27  来源:igfitidea点击:

Login is currently incompatible with git bash/cygwin

gitbashdeployment

提问by Elmer Maxino Cacaldo

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?

我只下载了这个版本?Git-2.6.1-64-bit.exe 我的操作系统是 windows 10 64bit .. 为什么我仍然无法登录?Git-2.6.1-64-bit.exe 是最新的吗?

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

之前是 MINWG32 现在更新为 MINWG64 但我仍然无法登录..帮我解决这个问题

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.

我对此没有任何解决方案,而是使用 cmd.exe .... 但我需要它的流程......因为某些命令无法在这种环境中运行......这是 Linux 之间的很大差异- 类似环境......请发布在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

它说:登录当前与 git bash/cygwin 不兼容同时,通过 cmd.exe 登录 https://github.com/heroku/heroku-cli/issues/84

回答by Uziel Valdez

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

首先通过 windows 命令提示符登录,然后您将能够在 git Bash 上运行 heroku 命令。

回答by Firefly4266

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.

简单的修复。按照站点说明在 Windows 机器上安装 Heroku。然后,在关闭 Git Bash 的情况下,打开 Windows“命令提示符”并输入“heroku login”。系统将提示您输入 Heroku 用户名和密码,然后就可以了!关闭命令提示符并照常使用 bash。

回答by Ozesh

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

我没有输入heroku login,而是输入winpty heroku login。这解决了我的问题。

i.e

IE

winpty heroku login

回答by anjandash

回答by Beep

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

我总是发现 CMDER 运行良好,并且第一次与 heroku 一起工作,这只是一个建议。

You can find the link here

你可以在这里找到链接

回答by VonC

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

首先,最新版本在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:

下载PortableGit-2.7.0-64-bit.7z.exe,解压到c:\git2.7.0,添加到你的路径:

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.

然后启动 git-cmd 或 git-bash。

回答by Zahirul Haque

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

从 Windows cmd 登录。我已经成功从cmd登录。