3

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

user310291
  • 36,946
  • 82
  • 271
  • 487
  • 1
    Are you using the ISE? If so, that doesn't offer programs the ability to read console input... I've solved this before by running Start-Process which will launch it in a new window. Or just using the console instead of ISE. – Chris N Nov 09 '15 at 01:46
  • @ChrisN no I'm using non ISE console. – user310291 Nov 09 '15 at 09:09

1 Answers1

3

You can make the process non-interactive with:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • thanks that's usefull answer I will mark it as good answer if nobody can fully answer as my question also pertains to Powershell not just git. – user310291 Nov 09 '15 at 09:17