Reputation: 38190
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
Upvotes: 3
Views: 714
Reputation: 1324337
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
Upvotes: 3