Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
9 views

GitHub Tutorial

This document serves as a guide to using GitHub, covering essential commands such as clone, commit, push, and pull for managing repositories. It also explains forking and branching, allowing users to develop projects independently and implement changes. The guide emphasizes the importance of making snapshots of files and merging changes back to the main branch.

Uploaded by

Wendel Anthuny
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

GitHub Tutorial

This document serves as a guide to using GitHub, covering essential commands such as clone, commit, push, and pull for managing repositories. It also explains forking and branching, allowing users to develop projects independently and implement changes. The guide emphasizes the importance of making snapshots of files and merging changes back to the main branch.

Uploaded by

Wendel Anthuny
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

Github. A Guide.

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

git commit git commit


Upload your snapshots

Your
Github
git clone git push
Your
computer

git commit git commit


All snapshots are saved

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

git add git commit


Upload snapshots & files to the project

Your
Github
git pull git push
Your
computer

git add git commit


Again, all snapshots are saved

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

You might also like