

I confirmed this by once again, restarting R studio, opening a project that had been pulled from one of my github repos, making some changes, trying to push those changes…same result: So I got the keychain helper configured without setting my computer on fire….but there was no part of that process that prompted me for my git/github username or password so I was skeptical that the keychain helper configuration alone would solve my problem. Git config -global credential.helper osxkeychain Next, tell Git to use osxkeychain using the global credential.helper config: Sudo mv git-credential-osxkeychain '/usr/local/bin/git-credential-osxkeychain' Next I had to put the helper in the same directory where git lives: The ‘usage: git credential-osxkeychain ‘ part confirms that I have the keychain helper installed…if that doesn’t happen for you I’m not really sure what you should do…that shit’s above my paygrade…probably google it. I set up the osxkeychain helper just like it says on the webpage…I’ll recap It wasn’t until I got to this page that I felt I was really getting somewhere. These steps also did not fix my problem but I felt a little better knowing that git can now successfully attach my name and email address to changes made on projects from my computer… so I got that going for me, which is nice. The same error message appeared:Īfter googling “github device not configured” I arrived at this page. After restarting R studio and opening a new R studio project from git, I still could not push any changes.
#Git in rstudio for mac install#
So with my fresh install of git 2.6.4, I went back to R studio to see if this fixed my problem.

#Git in rstudio for mac upgrade#
Turns out the factory install (I don’t know if it comes with Xcode or command line tools or what quite honestly) of git on osx is generally in /usr/bin, while the upgrade from homebrew gets dropped in /usr/local/bin.

I upgraded to git 2.6.4 but then, when I asked my computer what version of git I was on, it still told me I was on the old version. Word on the street was that this git credential issue might just be because I had an old version of git. On the Mac this did not happen so I figured I need some way to tell git what my credentials are so it would let me push changes from within R studio. Normally, when I follow these steps (clone a repository, make changes, commit changes, try to push changes back to the repo) on my PC, git/R studio prompts me for my github username and github password. I got this error message:Įrror: unable to read askpass response from ‘rpostback-askpass’įatal: could not read Username for ‘ : Device not configured However, when I went to push those changes back to GitHub, shit went sideways.
#Git in rstudio for mac code#
I made a few changes to the code and was able to commit those changes just fine (for illustrative purposes, a few screen shots are include below)
