(or an Appropriate Amount of Fear!)
Topics:
By the end of this session you should be able to:
A familiar workflow problem
Git
GitHub
Git keeps a history of changes:
Ecology is collaborative
Examples:
Repository = project folder + history
A repository contains:
Think of it as:
A project folder with memory.
Commits are snapshots
A commit records:
Push
Send your local commits to GitHub.
Pull
Download changes from GitHub.
“What if I break everything?”
Good news:
Git is designed to:
Even experienced users regularly:
“I don’t understand branches”
That is okay.
Branches come later…
You do not need to master Git immediately.
“The terminal is scary”
Yes it is! You can do a lot using:
Understanding concepts matters more than memorising commands.
Common “beginner” mistakes
You will:
On GitHub:
Suggested name:
In RStudio:
Paste repository URL.
You now have:
Copy into the repository:
RStudio now shows changed files.
In Git pane:
Example:
Click:
Your project is now online.
Add:
Commit and push changes.
Always pull before starting work.
Commit often
