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

2
  • 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. Commented Nov 9, 2015 at 1:46
  • @ChrisN no I'm using non ISE console. Commented Nov 9, 2015 at 9:09

1 Answer 1

3

You can make the process non-interactive with:

Sign up to request clarification or add additional context in comments.

1 Comment

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.