Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法使用Powershell推送到github_Git_Powershell_Github - Fatal编程技术网

无法使用Powershell推送到github

无法使用Powershell推送到github,git,powershell,github,Git,Powershell,Github,在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:我在Wi

在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

您可以使流程与以下内容不交互:

  • 在url中使用您的用户名:

    git remote add github https://myusername@github.com/myusername/myrepo.git
    
  • 那会给你的


您正在使用ISE吗?如果是这样的话,那就不能让程序读取控制台输入。。。我以前已经通过运行启动进程解决了这个问题,它将在一个新窗口中启动它。或者只是使用控制台而不是ISE。@ChrisN不,我使用的是非ISE控制台。谢谢这是有用的答案,如果没有人能完全回答,我会将其标记为好答案,因为我的问题也涉及Powershell,而不仅仅是git。
git config --global credential.helper wincred