Getting Set Up: RStudio + GitHub
2025-09-08
What did we learn last time?
Go here
Download RStudio Desktop (Open Source Edition)
Install like any normal app:
Mac → .dmg file → drag into Applications
Windows → .exe file → run installer
git --versionApplications/Utilitiesxcode-select --installgit --versionWinjapati)You must set your info in a command prompt
Windows: Open the program called “Git Bash” (installed with Git)
Mac: Open the program called “Terminal” (in Applications → Utilities)
It looks like a scary black window. Don’t worry — you only need to type a few lines.
An SSH key is a pair of files:
After setup, you won’t need to type passwords for pushes.
When asked for a passphrase, you can:
You should see messages about creating id_ed25519 and id_ed25519.pub.
Copy the public key to clipboard
Windows (Git Bash):
README.md filestaged box has a check markcommit. A box will pop up, close it.This is Crucial!
You must select push to send your changes to the GitHub server.
git remote -v # you’ll likely see https://github.com/...
# replace with SSH:
git remote set-url origin git@github.com:<YourUser>/<YourRepo>.git
# double check:
git remote -v # now it should show git@github.com:...laptop-rstudioCode button, choose HTTPS, copy URLgit config --global credential.helper manager on Windows, or osxkeychain on Mac), you’ll only paste the token once.