GitHub Tutorial
GitHub Tutorial
The Basics:
Pull! Add! Commit! Push!
Download a project = repository
Your
Github
git clone
Your
computer
Make snapshots of your files...
Your
Github
git clone
Your
computer
git commit
...while you work on them
Your
Github
git clone
Your
computer
Your
Github
git clone git push
Your
computer
Your
Github
Your
computer
The files on your Github & locally differ?
Your
Github
Your
computer
Download all new changes
Your
Github
git pull
Your
computer
Add new files to the project
Your
Github
git pull
Your
computer
git add
Make a snapshot of this project
Your
Github
git pull
Your
computer
Your
Github
git pull git push
Your
computer
Your
Github
Your
computer
Forking:
Develop somebody’s project
in another direction
Forking: Somebody works on an exciting project?
Other Github
account/orga
Your
Github
Your
computer
Forking: Make a copy of that repo in your Github
Other Github
account/orga
Fork
Your
Github
Your
computer
Forking: Download the repo to work on it
Other Github
account/orga
Fork
Your
Github
git clone
Your
computer
Forking: Push changes to YOUR Github
Other Github
account/orga
Fork
Your
Github
git clone git push
Your
computer
Forking: Continue working on it with your Github account...
Other Github
account/orga
Fork
Your
Github
git clone git push
Your
computer
Forking: ...while the original creator does her own thing
Other Github
account/orga
Fork
Your
Github
git clone git push
Your
computer
Branching:
Try out new stuff for your project
Branching: Want to implement a bigger change in a repo?
Your
Github
Your
computer
Branching: Create a new branch for your project
Create
a branch
Your
Github
Your
computer
Branching: Work on it & push the changes to the new branch
Create
a branch
Your
Github
git clone git push
Your
computer
Branching: Keep working on it until you’re happy....
Create
a branch
Your
Github
Your
computer
Branching: ...then merge the changes into the main branch
Create
git merge
a branch
Your
Github
Your
computer
Branching: You’re back on the main branch!
Create
git merge
a branch
Your
Github
Your
computer