Skip to content
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this course.

If the video is not playing correctly, you can watch it in a new window

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

  1. Install Git

  2. Confirm that you installed Git correctly by going to your terminal in RStudio and typing git --version (you should have version 2.3 or later)

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Juan Clavijo

Juan Clavijo

October 18, 2021

Had to restart R studio for git version to come up in the terminal

Hannah Koenker

Hannah Koenker

October 20, 2021

I was stuck. I installed Git but got 'object not found' when I restart RStudio and checked it. Turns out I was typing in the Console but needed to be in the Terminal. Just in case others make this mistake :)

Eric Foerster

Eric Foerster

October 21, 2021

No problems with downloading Git. Using a Mac. Updated R and RStudio with no issues. However, the git --version I'm getting is 2.24.3 (Apple Git-128). Have tried downloading it again several times and cannot get version 2.33. Any ideas???

Mychal Davis

Mychal Davis

April 15, 2022

Hello, I have Git Bash installed on my machine, do I need to install GIT too?

Norm Anderson

Norm Anderson

April 16, 2022

I don't think the installation went well. I do not see the version. I have restarted RStudio.

Microsoft Windows [Version 10.0.19043.1645] (c) Microsoft Corporation. All rights reserved.

C:\Users\norma\OneDrive\Desktop\Week 3 - R in 3 Months>git -- version unknown option: -- usage: git [--version] [--help] [-C ] [-c =] [--exec-path[=]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir=] [--work-tree=] [--namespace=] [--super-prefix=] [--config-env==] []

Microsoft Windows [Version 10.0.19043.1645] (c) Microsoft Corporation. All rights reserved.

C:\Users\norma\OneDrive\Desktop\Week 3 - R in 3 Months>git--version 'git--version' is not recognized as an internal or external command, operable program or batch file.

Shira Solomon

Shira Solomon

April 18, 2022

I installed Git and get this error message when looking for it in the R Studio terminal: " 'git' is not recognized as an internal or external command, operable program, or batch file. " Git GUI, Bash, and CMD all appear in my file tree. Can you help? Thanks!

Shira Solomon

Shira Solomon

April 18, 2022

Problem solved (mine at least)! Turns out R Studio didn't like my character spacing. It responded just fine when I followed David's example: [no space] git [space] --[no space]version

Niger Sultana

Niger Sultana

April 22, 2022

bash: git version: command not found is shown after installing git. is it okay? I did not found any instruction to restart R studio. Am I following right way to install Git?

Julieth Silao

Julieth Silao

October 6, 2022

i follw all the steps but i get

object git not found

Followed the steps and it is showing an older version 2.15.0. On a M1 Mac.

Elsa Bailey

Elsa Bailey

October 30, 2022

It appears that for Mac we must not click on "installer" but on the 2.33 link. Had to do that to get the updated version. (Clicking on installer gave me a 2.15.0 version)

Kiana Robinson

Kiana Robinson

April 21, 2023

Kianas-MacBook-Pro:Week 3 kianaramisi$ git --version xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Kianas-MacBook-Pro:Week 3 kianaramisi$ git--version bash: git--version: command not found Kianas-MacBook-Pro:Week 3 kianaramisi$ git --version xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Kianas-MacBook-Pro:Week 3 kianaramisi$

Why this? Why me?

Kholida Karimova Hashkes

Kholida Karimova Hashkes

April 22, 2023

Do I need to install Git if I'm planning to use GitHub only?