Problem with authentication: GitHub from RubyMine
Hi,
I've installed Git locally on my system using mysysGit and I'm able to push to GitHub with no problems after setting up my ssh, global email and realname.
I tried creating a project in RubyMine in the same directory and it picked up the Git settings fine. However, when I do a 'push' to GitHub it works but reports me as anonymously posting:
http://github.com/joejag/lasker-checkers/commits/master
The only config I can see in RubyMine is where the git.exe is installed, which is picks up correctly.
Is there something else I need to do to have my commits authenticated? I noticied it asks "username" on the commit dialog, I tried putting in my github id there but it makes no difference.
Thanks,
Joe Wright
Please sign in to leave a comment.
Hello Joe,
You forgot to configure his local computer with commands like:
$ git config --global user.name "Your Name Comes Here"
$ git config --global user.email you@yourdomain.example.com
See the first section in the tutorial (it can be accessed through "git tutorial --help"): http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html
Thanks,
Oleg
I followed the new project instructions on GitHub which gives you those commands to run:
And I verified it by commit/pushing the readme from console right after (1st commit cmd line, 2&3 RubyMine, 4th cmd line):
http://github.com/joejag/lasker-checkers/commits/master
I'll try checking and rerunning the command again when I'm on the same computer (later today).
I've rechecked and I definetly have those settings enabled. I cannot see any way of using this RubyMine (#824) with GitHub.
I have a .gitconfig directory in my user home which contains those details (inserted via the command prompt) and if I drop out to console development area in the same directory it commit/pushes correctly.
Is there any way to figure out what RubyMine is doing while interacting with Git?
I'll try working under Ubuntu instead of Vista.
Hello Joe,
We were not able to reproduce it neither on Ubuntu nor on Windows XP.
What version of git do you use? Maybe cygwin?
Wbr,
Oleg
Hi,
I have a similar problem and I am using Windows Vista SP1 and Git version 1.6.1-preview20081227. I have a global .gitconfig file with my name and email in it under my user folder. When I use Git from the command line, my commits correctly get my name and email but when I commit via RubyMine, it commits as 'unknown'. Please help.
I have the same problem, from command line, works fine. From rubymine, shows up as Unknown.
I also had problems with Rubymine recognising my .gitconfig file with author settings.
But there is a workaround (thanks to the fine manual): you override the author during a commit.
You can do this in Rubymine in the commit dialog: add a username which follows this format: "aut hor <aut.hor@test.com>" - without quotation marks.
It works (at least for me).