Hello,
I would like to configure CI with Visual Studio Online. Hooking up with self hosted service I get:
2017-07-25T16:00:36.4387217Z ##[command]git remote add origin http://git.hussars.co:7990/scm/ed/edustudio.git
2017-07-25T16:00:36.4737228Z ##[command]git config gc.auto 0
2017-07-25T16:00:36.5067239Z ##[command]git config --get-all http.http://git.hussars.co:7990/scm/ed/edustudio.git.extraheader
2017-07-25T16:00:36.5387237Z ##[command]git config --get-all http.proxy
2017-07-25T16:00:36.5717255Z ##[command]git remote set-url origin http://********@git.hussars.co:7990/scm/ed/edustudio.git
2017-07-25T16:00:36.6057258Z ##[command]git remote set-url --push origin http://********@git.hussars.co:7990/scm/ed/edustudio.git
2017-07-25T16:00:36.6447275Z ##[command]git fetch --tags --prune --progress origin
2017-07-25T16:00:37.0122318Z fatal: could not read Password for 'http://********@git.hussars.co:7990': terminal prompts disabled
2017-07-25T16:00:37.0674188Z ##[error]Git fetch failed with exit code: 128
2017-07-25T16:00:37.0712501Z ##[section]Finishing: Get Sources
How can I enable terminal prompts?
Hi Pawel,
The issue you're running into is originating from Visual Studio. You'll want to take a look at the articles VisualStudio error: terminal prompts disabled, Git push requires username and password and Attempting push on git and receiving “could not read Username for 'https://github.com': terminal prompts disabled:”
Solution: Open the command line, navigate to the folder and git push origin master. We can find there will be a prompt to ask you to input the github username and password. Just do it!
In additon, the second article provides a more permanent solution using a password:
As per my Comment. You can include your username in the remote URL (similar to FTP).
Example without password (SSH):
git remote set-url origin git@github.com:username/repo.git
Example with password (https)
https://name:password@github.org/repo.git
Once you follow the steps in the linked articles you should be set!
Cheers,
Branden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.