【问题标题】:Cannot push to github with Powershell无法使用 Powershell 推送到 github
【发布时间】:2015-11-09 01:18:10
【问题描述】:

在 Powershell 控制台中,键入时

git remote add github https://github.com/myusername/myrepo.git
git push -u github master

Powershell 提示

Username for 'https://github.com':

但是我无法输入任何答案,因为任何按键似乎都没有响应,这正常吗?

注意 1:我使用 github 作为 remote 的名称,因为我已经使用 origin 来推送到 bitbucket

注意 2:我在 Windows 10 上并安装了 Posh-Git

【问题讨论】:

  • 您在使用 ISE 吗?如果是这样,那不提供程序读取控制台输入的能力......我之前通过运行 Start-Process 解决了这个问题,它将在新窗口中启动它。或者只是使用控制台而不是 ISE。
  • @ChrisN 不,我使用的是非 ISE 控制台。

标签: git powershell github


【解决方案1】:

您可以通过以下方式使流程非交互:

【讨论】:

  • 谢谢这是有用的答案,如果没有人能完全回答,我会将其标记为好答案,因为我的问题也与 Powershell 相关,而不仅仅是 git。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-02-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多