How can I fix the error: fatal: could not read Username for 'https://github.com': Device not configured

HI, does anybody know how to fix this error:

fatal: could not read Username for 'https://github.com': Device not configured

...during merge:

Errors during merge

Switched to branch 'master'

Switched to branch 'develop'

fatal: could not read Username for 'https://github.com': Device not configured

Could not push to develop from origin.

3 answers

I'm seeing something similar and have yet to find a resolution with the URL removed as its an internal private GitHub instance:

 

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/development:refs/heads/development refs/heads/master:refs/heads/master 
Pushing to https://<my URL>/<REPO>.git
error: git-credential-sourcetree died of signal 5
fatal: could not read Username for 'https://<my URL>': Device not configured
Completed with errors, see above

 

I'm on OS X Yosemite with the git version:

git version 2.3.2 (Apple Git-55)

Just as a quick, have you set your public/private keys up correctly?

He's using HTTPS so SSH keys aren't related.

I haven't seen this but I've Googled some reports of this when installing your own system git and using the 'credential-osxkeychain' extension to get the command-line git to use OSX's keychain to log in over HTTPS links. You don't need that extension to work with SourceTree, it provides its own integration with the keychain, so if you've done this it would be worth disabling it to see if that helps.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Jodi LeBlanc
Posted yesterday in Off-topic

Friday Fun: How do you recharge your batteries after a busy week?

Happy Friday – Fun Day! I don’t know about you, but I have been giving everything I’ve got this week (and most weeks) and come Friday I look for unique ways to recharge my batteries - rest, relax, a...

184 views 21 4
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you