Install Git
This lesson is called Install Git, part of the R in 3 Months (Fall 2022) course. This lesson is called Install Git, part of the R in 3 Months (Fall 2022) course.
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
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!
Course Content
142 Lessons
1
Welcome to Getting Started with R
00:57
2
Install R
02:05
3
Install RStudio
02:14
4
Projects
07:54
5
Files in R
04:33
6
Packages
02:38
7
Import Data
05:24
8
Objects and Functions
03:16
9
Examine our Data
12:50
10
Import Our Data Again
07:11
11
Getting Help
07:46
12
Wrapping Up
13
R in 3 Months Fall 2022 - Introductions thread!
14
R in 3 Months Fall 2022 Week 1 Live Session
59:22
1
Getting Started
03:01
2
The Tidyverse
12:11
3
select
05:48
4
mutate
04:08
5
filter
10:26
6
summarize
03:20
7
group_by
02:56
8
count
02:06
9
arrange
03:58
10
Create a New Data Frame
02:42
11
Crosstabs
06:58
12
Wrapping Up
13
R in 3 Months Fall 2022 Week 3 Project Assignment
02:33
14
R in 3 Months Fall 2022 Week 3 Drop-in Session
1:03:00
15
R in 3 Months Fall 2022 Week 3 Live Session
1:01:42
1
An Important Workflow Tip
05:00
2
The Grammar of Graphics
06:08
3
Scatterplots
05:15
4
Histograms
02:31
5
Bar Charts
06:32
6
color and fill
03:58
7
scales
09:14
8
Text and Labels
08:04
9
Plot Labels
06:06
10
Themes
03:56
11
Facets
05:57
12
Save Plots
05:17
13
Wrapping Up
14
You Did It!
15
R in 3 Months Fall 2022 Week 4 Project Assignment
04:32
16
R in 3 Months Fall 2022 Week 4 Drop-in Session
1:02:15
17
R in 3 Months Fall 2022 Week 4 Live Session
1:00:17
1
Welcome, Logistics, Course Materials, and Additional Resources
2
What is Git? What is GitHub?
02:23
3
Why Should You Learn to Use Git and GitHub?
03:04
4
Update Everything
07:34
5
Install Git
04:04
6
Configure Git
02:10
7
Create a Local Git Repository
03:16
8
Commits
06:00
9
Commit History
04:28
10
GitHub Repositories
04:47
11
Connect RStudio and GitHub
05:06
12
Push an RStudio Project to a GitHub Repository
02:57
13
Pull a GitHub Repository to an RStudio Project
02:52
14
Keep RStudio and GitHub in Sync
02:27
15
R in 3 Months Fall 2022 Week 6 Project Assignment
07:55
16
R in 3 Months Fall 2022 Week 6 Drop-in Session
17
R in 3 Months Fall 2022 Week 6 Live Session
1:02:01
1
Overview
2
Importing Data
15:45
3
Tidy Data
08:11
4
Reshaping Data
10:18
5
Dealing with Missing Data
04:56
6
Changing Variable Types
05:30
7
Advanced Variable Creation
19:26
8
Advanced Summarizing
10:00
9
Binding Data Frames
06:50
10
R in 3 Months Fall 2022 Week 7 Drop-in Session
1:06:06
11
R in 3 Months Fall 2022 Week 7 Live Session
1:01:49
1
Data Visualization Best Practices
04:51
2
Tidy Data
04:01
3
Pipe Data Into ggplot
04:50
4
Reorder Plots to Highlight Findings
06:09
5
Line Charts
04:10
6
Use Color to Highlight Findings
08:25
7
Declutter
10:47
8
Use the scales Package for Nicely Formatted Values
03:42
9
Use Direct Labeling
11:43
10
R in 3 Months Fall 2022 Week 9 Project Assignment
11
R in 3 Months Fall 2022 Week 9 Drop-in Session
22:04
12
R in 3 Months Fall 2022 Week 9 Live Session
1:02:50
1
Use Axis Text Wisely
03:15
2
Use Titles to Highlight Findings
03:33
3
Use Color in Titles to Highlight Findings
03:51
4
Use Annotations to Explain
04:52
5
Tweak Spacing
05:11
6
Customize Your Theme
02:48
7
Customize Your Fonts
08:18
8
Try New Plot Types
11:50
9
R in 3 Months Fall 2022 Week 11 Project Assignment
03:23
10
R in 3 Months Fall 2022 Week 11 Drop-in Session
11
R in 3 Months Fall 2022 Week 11 Live Session
57:28
1
Advanced Markdown Text Formatting
10:52
2
Tables
19:33
3
Advanced YAML
11:49
4
Inline R Code
06:57
5
Making Your Reports Shine: Word Edition
06:53
6
Making Your Reports Shine: HTML Edition
06:32
7
Making Your Reports Shine: PDF Edition
08:21
8
Presentations
04:21
9
Dashboards
06:28
10
Other Formats
04:57
11
You Did It!
12
R in 3 Months Fall 2022 Week 12 Drop-in Session
13
R in 3 Months Fall 2022 Week 12 Live Session
1:04:50
1
All R in 3 Months Fall 2022 Videos
2
Reading documentation pages
05:20
3
Working with file paths and RStudio Projects
05:37
4
Styling RMarkdown docs
5
Structuring large projects (and dealing with slow knitting of Rmd files)
03:47
6
Quarto vs RMarkdown
02:56
7
How to get lesson and lecture slides
03:15
8
{lubridate} for working with dates and times
07:28
9
Statistical Tests
10:17
You need to be signed-in to comment on this post. Login.
Juan Clavijo • October 18, 2021
Had to restart R studio for git version to come up in the terminal
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 • 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 • April 15, 2022
Hello, I have Git Bash installed on my machine, do I need to install GIT too?
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 • 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 • 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 • 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 • October 6, 2022
i follw all the steps but i get
object git not found
Matt Kropp • October 26, 2022
Followed the steps and it is showing an older version 2.15.0. On a M1 Mac.
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 • 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 • April 22, 2023
Do I need to install Git if I'm planning to use GitHub only?
Alberto Cabrera • July 1, 2024
I installed Git and GitHub in my Mac M1 last year, after many attempts. I have the git version 2.39.3 Apple Git-146. The Git web page reports version 2.45. 2 as the current one. My questions are these: Do I need to upgrade? Do I need to reinstall Git, which makes me worry a lot?
I must confess I enroll into this course after trying unsuccessfully to learn Git and GitHub. I fear these two packages the most.
Alberto Cabrera • July 1, 2024
I also checked the version for GitHub Desktop for my Mac M1, which is 3.3.12 (arm64). It is the current one. It seems it updated itself.
My main concern is how to update Git in my Mac from my current version of 2.39/3 (Apple Git-146). I just don't want to make a mistake I will regret given my ignorance :0)
David Keyes Founder • July 1, 2024
I have found that people have better luck using GitHub Desktop than trying to install git manually (in fact, I'm going to redo this course soon to reflect this). I'd just move forward given that you seem to have a newish version of git installed. If you have issues later, just let me know.
Alberto Cabrera • July 1, 2024
A year ago, I was able to install GitHub for the desktop. It is easy to update by allowing one to check for updates. My problem is how to update the Git version for the Mac M1. My version, which I installed a year ago, is 2.39.3. I visited Git website and could not find a way to update Git.
David Keyes Founder • July 1, 2024
You should be able to just download the newest version and install that, which will overwrite your current version.
Mike LeVan • January 13, 2025
Hi. Looking to install Git (Binary installer) and the webpage listed in the lesson also says this method is "abandoned"?
There are further instructions that say :
"This was once the official stand-alone installer for Git on OS X. You can install git from official Apple packages, where sideloading is not necessary."
When I try to install the download from this page I get the following :
"Apple could not verify “git-2.15.0-intel-universal-mavericks.pkg” is free of malware that may harm your Mac or compromise your privacy."
And the package would not install.
Wound up installing Xcode.
Mike LeVan • January 13, 2025
Actually, went with GitHub Desktop.
Mike LeVan • January 13, 2025
lol, I'm a bonehead. I had paused the lesson and you then addressed how to install Git even when you get the warning message.
David Keyes Founder • January 13, 2025
Yes, GitHub Desktop is very much the answer here. In fact, I'm in the process of updating this course to just use GitHub Desktop. That will be out in 2025, and anyone who has access to the current version of the course will receive free access to the new version as well.