簡體   English   中英

不能用Powershell推送到github

[英]Cannot push to github with Powershell

在Powershell控制台中,鍵入時

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

Powershell提示

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

但我無法輸入任何答案,因為任何按鍵似乎都沒有響應,這是正常的嗎?

注1:我使用github作為遠程的名稱,因為我已經使用origin來推送到bitbucket

注2:我在Windows 10上安裝了Posh-Git

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

  • 在網址中使用您的用戶名:

     git remote add github https://myusername@github.com/myusername/myrepo.git 
  • 使用git憑證助手 ,為您存儲密碼

     git config --global credential.helper wincred 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM