Introduction to GitHub
000
Goals
2
What is version control?
3
What is Git?
4
Benefits of using Git
modified from SEAMS
5
6
Distributed version control system
Repository
(Local disk)
push
pull
Working copy
update
add 🡪
commit
Tumelo
Repository
(Server)
Repository
(Local disk)
push
pull
Working copy
update
add 🡪
commit
Evans
Repository
(Local disk)
push
pull
Working copy
update
add 🡪
commit
Lauren
Getting started on GitHub
7
Getting started with your terminal
Prints current working directory
Change directory
Make directory
8
Exercise 1
9
Getting started on GitHub
Clone a remote repository to your local computer
Change directory
Change directory one up
10
Exercise 2
11
Getting started on GitHub
Pulls recently modified files from the remote repository to the local repository
Info about modified files
stages the changes you made
Commits staged files
12
Exercise 3
Edit file
Rename it as <your name>.md
Save file
13
Getting started on GitHub
14
Exercise 4
15
Git commands chart
16
Repository
(Server)
Repository
(Local disk)
push
pull
Working copy
update
add 🡪
commit
clone
CONFLICT RESOLUTION
17
CONFLICT RESOLUTION
18
CONFLICT RESOLUTION
identify conflicted files
edit them (however you usually edit files, or with nano)
fix them
add them (with add or at the same time as commit with -a)
19
Each time you're ready to start working�
If you're following the workflow there should not be conflicts, but if there are, see below
20
Each time you're ready to add content to the master branch
Resolve conflicts
Add and commit the new changes
21
Troubleshoot
22
This presentation is made available through a Creative Commons Attribution-Noncommercial license. Details of the license and permitted uses are available at� http://creativecommons.org/licenses/by-nc/3.0/
Title: {Introduction to GitHub}
Attribution: {Zinhle Mthombothi, Jonathan Dushoff & Juliet Pulliam}, Clinic on the Meaningful Modeling of Epidemiological Data
Source URL: {FIGSHARE URL}
For further information please contact admin@ici3d.org.
000
© {2019} International Clinics on Infectious Disease Dynamics and Data
000
000