Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot push to github with Powershell

In Powershell Console, when typing

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

Powershell prompt

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

But I cannot enter any answer as any keypress doesn't seem to respond, is it normal ?

Note 1: I use github as name for remote because I already used origin for pushing also to bitbucket

Note 2: I am on Windows 10 and have installed Posh-Git

like image 690
user310291 Avatar asked Nov 25 '25 13:11

user310291


1 Answers

You can make the process non-interactive with:

  • using your username in the url:

    git remote add github https://[email protected]/myusername/myrepo.git
    
  • using a git credential helper that will store your password for you

    git config --global credential.helper wincred
    
like image 77
VonC Avatar answered Nov 28 '25 10:11

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!