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?
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 email@example.com:username/repo.git
Example with password (https)
Once you follow the steps in the linked articles you should be set!
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs