Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RStudio: how to set the Git executable in Windows 7?

Tags:

r

rstudio

I'm using Windows 7 Enterprise on a work laptop.

I downloaded the GitHub Desktop app from the GitHub site (https://desktop.github.com/) and installed it. I read somewhere that the GitHub Desktop app automatically installs Git. I verified version control is working OK using both the GitHub Desktop app and also using the command line in shell.

But now I want to use Git with my RStudio app. SO I went to Tools | Global Options, clicked on the Git/SVN item on the left panel. The second item in the dialog asks for "Git executable". I looked in all the usual places like:

C:\Program Files
C:\users\<my_name>\AppData\Local\GitHub  

but cannot see where the Git executable is. Do you have any suggestions?

like image 279
hackR Avatar asked Feb 18 '26 20:02

hackR


1 Answers

Look deeper into your AppData\Local\GitHub folder. I found mine in AppData\Local\GitHub\Portable_Git_XXXXXX\bin\git.exe where XXXX is a string of 32 characters or so.

like image 76
pcantalupo Avatar answered Feb 21 '26 15:02

pcantalupo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!