sublime-text-git
sublime-text-git copied to clipboard
fatal: could not read Username for 'https://github.com': Device not configured
Hi,
I get the following trying to push/pull with this plugin.
fatal: could not read Username for 'https://github.com': Device not configured
But I cant seem to figure out where to set my username.
Thanks in advance,
David
I have this issue as well. Could it be related to use of credential-osxkeychain?
does seem that way, which os are you guys on?
OS X.
Anything? I can't commit at the moment, which is obviously a problem
Does this have anything to do with the way you connect to github (https/ssh)? I'm using ssh to connect. I second @Dazzla, this is getting an issue since we cant push or pull anything.
There's nothing stopping you from using the command line in the meantime, is there?
Same issue. Came out of the blue.
Try using authentication via ssh instead of https. That solved this issue for me.
Are there any settings required to tell the plugin I use ssh? I run all my projects over ssh, but it doesn't work for me.
I had this issue and fixed it according to this stackoverflow answer.
Basically, you may need to update the remote for your repository using: git remote set-url origin [email protected]:username/repo.git
This is not a fix, @psgibbs, you're simply avoiding the secure HTTPS authentication by using the Git protocol instead.
(the following is OS X specific)
Hey, I don't know if this will actually help anyone here, but I just solved a similar problem, and here's what I would suggest:
- Follow these instructions to get password-less
git pull
andgit push
working from the command line https://help.github.com/articles/set-up-git - Make sure that sublime-text-2-git is using the same installation of git as you get from the command line. If not, you'll see
git: 'credential-osxkeychain' is not a git command.
in the echo area when you try to push or pull. In that case you should either delete the other git, or specify in Git.sublime-settings which git to use (find this by going to Preferences>Browse Packages... and opening the "Git" folder). In particular, just setgit_command
equal to the the output ofwhich git
at the command line.
Hope this helps someone.
I got this as well and it was because I added the repository using githubs app for Mac and not the git program that already exists. So I deleted the repository locally and in the github app. Then I cloned the repository using the terminal using git. After this git in sublime text worked fine. And for having a good overview I also added the local repository in the github app as well. So basically, if you used the github app to clone the repository, delete it from your computer and from the app. Then clone the repo using the git program, then u can add the repo in the github app again if u want. Hope this helps in some way...
Not working for me either. I use ssh for my git. I'm using the Git that is supplied with the OS X Developer Tools. I use Git from the command line all day long, but can't get the Git:Push to work in Sublime Text 2.
Solved my problem. It wasn't with Sublime Text 2. My projects .git/config file was trying to use https instead of ssh for the url. Changed it to use [email protected]/jeffself/project_name.git and everything works now.
@kracke Thank you for you answer! It fixed the problem!
I had the same problem, and could also solve it by changing to the SSH address. The weird thing is the problem only occurred after updating the GitHub client - before that everything worked fine. OS X / GitHub client that auto-updated on 2012-11-08.
I had same problem and solved by updating Primary remote repository in Settings of my repository to [email protected] address that is available in repository page at github.com.
but i got issue with that when i using git for codeplex, so that looks i can using ssh for my project, coz they don't have one. is there anyone can give me a solution on that ?
@jeffself 's answer solved my problem! Thank you.
Same for me, thx @jeffself
Ainda não consegui resolver essa situação, segue a mensagem de erro: "$ git push origin fatal: could not read Username for 'https://github.com': No such file or directory"
worked for me >>git remote set-url origin [email protected]:username/repo.git<<
@BoscoBecker, I had the same problem. You must use SSH and not HTTPS. Please take a look at: https://help.github.com/articles/generating-ssh-keys
You can solve this error by using this. I also faced that problem through a day. git remote add origin https://{username}:{password}@github.com/{username}/project.git Note: if your password contains '@' character use '%40' instead of that...
Worked for me: git remote add origin https://{username}:{password}@github.com/{username}/project.git
Thank you, tharakaucsc.
please refer the comment of tharakaucsc, it works.
Thanks@tharakaucsc. You solved my problem.
The detail step: 1, go to your local git project directory, open ".git/config" file and delete the "[remote "origin"]" section. 2, go to git bash and input "git remote add origin https://{username}:{password}@github.com/{username}/project.git" 3, input git push to check if it works.
Thanks @tharakaucsc it worked for me as well, thanks a lot
its a bad idea to use the password in the origin. the command git remote -v
shows your github password