Github 101
The 15-minute version
This is going to be extremely compressed.
Maybe schedule a time to work through the longer version with your peers?
1
Assumptions of this workshop:
2
This workshop will...
Cover:
Not cover:
3
You’re going to add yourself to the readme!
4
5
organization name
repo (“repository” of files) name
README is a special file that displays automatically
all of the files in the repo
Click on README.md to edit it
other stuff related to this repo. Notice “Issues”
Add yourself to “People of EEW”
6
Scroll to the bottom of the file. On saving changes:
7
“commit message”
Extra description (optional)
make a branch
What’s a branch? A pull request? A commit?
8
Start here (main branch of your repo = beginning state of all the files)
Main branch can get commits in the meanwhile
Commits (saves) on your branch
They are merged back together
Ready to make a pull request (suggestion to merge your branch into main)
Save to a branch, and send a PR to suggest merge
At the bottom of the file, “Propose file change” to start a pull request suggesting your changes
9
“commit message”
Extra description (optional)
Click when ready
Send a Pull Request
10
Extra description (optional)
Your changes
The version that you are suggesting your changes onto
Brief description of your changes
Click when ready to send pull request
Anatomy of a pull request
11
Much like an Issue, starts with PR description but can become a discussion
Lists your commits and commit messages
Automatic code quality checks (N/A)
“Files changed”:�Click here to see suggested changes
Viewing changes: “diffs” show what’s different
12
File name
Toggle between plain text & rendered view
Lines in green have been added
Lines in white are unchanged
Lines in red have been deleted
Line-by-line review
13
Overall review
14
Merging changes
15
Accept the changes as proposed into your file
Reject the changes (it’s polite to leave a comment explaining why)
What else needs doing? Check out “Issues”
16
join anything, esp with this label
make a new issue
to-dos & conversations
What are we doing this week? “Projects” tab
17
“kanban board” for status of issue
add things to board
“sprint” = tasks we plan to do in that week
Github 101
A 1-Hour Workshop
18
Getting to know you
19
Account & Identity
20
“Repos” (repositories) = folders, kind of
21
“Issues”: Suggested to-dos and conversations
22
Tag someone to ask for help
23
Now you can make a public place online and share it with others!
24
Open Source Culture Note
When you are collaborating with others on Github, in general...
25
Editing files:�Suggesting changes
26
Make an open source contribution: Communicate!
27
Make an open source contribution: Open the file
28
Wait, what’s a fork? I’m making a fork??
A fork is a version of somebody else’s repo, but that you’re allowed to edit.
It’s kind of like a branch…. Read on to learn about branches!
29
What’s a branch? A pull request? A commit?
30
What’s a branch? A pull request? A commit?
31
Start here (main branch of your repo = beginning state of all the files)
Main branch can get commits in the meanwhile
Commits (saves) on your branch
They are merged back together
Ready to make a pull request (suggestion to merge your branch into main)
Scroll to the bottom of the file. On saving changes:
32
“commit message”
Extra description (optional)
You save to your branch, and suggest to the owner
33
“commit message”
Extra description (optional)
Using “fixes” keyword
Click when ready
Send a Pull Request
34
Extra description (optional)
Your changes
The version that you are suggesting your changes onto
Brief description of your changes
Click when ready to send pull request
Now you can suggest changes to files!
35
Open Source Culture Note
When you are collaborating with others on Github, in general...
36
Editing files:�Reviewing changes
37
Reviewing a pull request
38
Anatomy of a pull request
39
Much like an Issue, starts with PR description but can become a discussion
Lists your commits and commit messages
Automatic code quality checks (N/A)
“Files changed”:�Click here to see suggested changes
Viewing changes: “diffs” show what’s different
40
File name
Toggle between plain text & rendered view
Lines in green have been added
Lines in white are unchanged
Lines in red have been deleted
Line-by-line review
41
Overall review
42
Merging changes
43
Accept the changes as proposed into your file
Reject the changes (it’s polite to leave a comment explaining why)
Now you can collaborate on your own & others’ projects!
44
Open Source Culture Note
When you are collaborating with others on Github, in general...
45
Project management with Project boards
46
Make a bunch of Issues on your repo
47
Set up a Project (like a Trello board)
48
More Project board features
You can add notes to the project board, “Convert to issue” if needed
49
Now you can see the status of different tasks all in one place!
50
Project management with Milestones
51
Set up a Milestone
52
Assign Issues to the Milestone
53
Now you can see progress toward a milestone (on the Milestones page)!
54