SlideShare a Scribd company logo
Git and GitHub crash Course
by Mireia Sangalo
@MyPitit
1. What is GitHub
2. What is Git
3. Diferences?
4. Git flow
1. Agenda
2. Agenda
GitHub
A walkthrough GitHub platform:
1. How to create an organisation
2. How to create a repository
3. Raising issues
4. Creating pull requests
5. Merging pull requests
6. Introduction to Wiki pages
Git
1. Clone a repository
2. Create / delete / change branch
3. Add / Push / Commit
4. Pull from master
3. Agenda
Let’s go!
1. What is GitHub
2. What is Git
3. Diferences?
4. Git flow
1. Agenda
1.1. What is GitHub?
• Web-based Git repository hosting service.
• It can be public or private, you can choose.
• If you want to create a private repositories you will
need to pay a small fee.
• If your repositories are public you can use the
service for free.
1. What is GitHub
2. What is Git
3. Diferences?
4. GitHub flow
1. Agenda
1. 2. What is Git?
Git is a free and open source distributed version control
system that is used for software development.
Git was initially designed and developed by Linus Torvalds for
Linux kernel development in 2005.
1. What is GitHub
2. What is Git
3. Diferences?
4. GitHub flow
1. Agenda
1. 3. Diferences
• GitHub is a Git repository hosting service.
• GitHub provides Web-based graphical interface.
• Git is a command line tool.
• With GitHub you can copy a repository from one user’s
account to another (fork).
You can send notifications (pull request).
You can merge the changes with one click.
1. What is GitHub
2. What is Git
3. Diferences?
4. GitHub flow
1. Agenda
1. 4. GitHub flow
Git and GitHub crash course
2. Agenda
GitHub
A walkthrough GitHub platform:
1. How to create an organisation
2. How to create a repository
3. Raising issues
4. Creating pull requests
5. Merging pull requests
6. Introduction to Wiki pages
7. README
2. 1. How to create an
organisation
2. Agenda
GitHub
A walkthrough GitHub platform:
1. How to create an organisation
2. How to create a repository
3. Raising issues
4. Creating pull requests
5. Merging pull requests
6. Introduction to Wiki pages
7. README
2. 2. How to create a
repository
2. Agenda
GitHub
A walkthrough GitHub platform:
1. How to create an organisation
2. How to create a repository
3. Raising issues
4. Creating pull requests
5. Merging pull requests
6. Introduction to Wiki pages
7. README
2. 3. Raising Issues
2. Agenda
GitHub
A walkthrough GitHub platform:
1. How to create an organisation
2. How to create a repository
3. Raising issues
4. Creating pull requests
5. Merging pull requests
6. Introduction to Wiki pages
7. README
2. 4. Creating a pull request
2. Agenda
GitHub
A walkthrough GitHub platform:
1. How to create an organisation
2. How to create a repository
3. Raising issues
4. Creating pull requests
5. Merging pull requests
6. Introduction to Wiki pages
7. README
2. 5. Merging a pull request
2. Agenda
GitHub
A walkthrough GitHub platform:
1. How to create an organisation
2. How to create a repository
3. Raising issues
4. Creating pull requests
5. Merging pull requests
6. Introduction to Wiki pages
7. README
2. 6. Wiki
2. Agenda
GitHub
A walkthrough GitHub platform:
1. How to create an organisation
2. How to create a repository
3. Raising issues
4. Creating pull requests
5. Merging pull requests
6. Introduction to Wiki pages
7. README
2. 7. README.md
Git and GitHub crash course
Git
1. Clone a repository
2. Create / delete / change branch
3. Add / Push / Commit
4. Pull from master
3. Agenda
3. 1. Clone a repository
$ git clone git@github.com:GitHubTutorialQUML/Tutorials.git
Cloning into 'Tutorials'...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.
Checking connectivity... done.
Git
1. Clone a repository
2. Create / delete / change branch
3. Add / Push / Commit
4. Pull from master
3. Agenda
Branches
Why do you need branches?
Git and GitHub crash course
3. 2. Create a new branch
$ git branch example
$ git branch
  example
* master
3. 2. Changing branches
$ git checkout example
Switched to branch 'example'
$ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
3. 2. Delete a branch
$ git branch -D example
Deleted branch example (was 5d0662d).
Git
1. Clone a repository
2. Create / delete / change branch
3. Add / Push / Commit
4. Pull from master
3. Agenda
3. 3. Add / Push / Commit
$ git add .
$ git commit -m "my 1st commit"
[example 5d0662d] my 1st commit
 1 file changed, 3 insertions(+), 1 deletion(-)
$ git push origin example
Counting objects: 3, done.
Writing objects: 100% (3/3), 271 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:GitHubTutorialQUML/Tutorials.git
 * [new branch]      example -> example
Everything was
perfect until one day…
Merge conflicts time!!
What is a merge conflict?
Git and GitHub crash course
Git
1. Clone a repository
2. Create / delete / change branch
3. Add / Push / Commit
4. Pull from master
3. Agenda
3. 4. Pull from master
mypitit@nietzsche: ~/Desktop/example/Tutorials $ git pull <remote>
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 7 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (7/7), done.
From ssh://my.remote.host.com/~/git/myproject
* branch master -> FETCH_HEAD
Updating 9d447d2..f74fb21
Fast forward
app/controllers/tutorials | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
Questions?

More Related Content

PPTX
Intro to Git and GitHub
PPTX
GitHub Basics - Derek Bable
PPTX
Introduction to Git and GitHub Part 1
PDF
Introduction to GitHub
PDF
Intro to Git and GitHub
PDF
Intro to Git, GitHub, and Devpost
PDF
Git, GitHub and Open Source
PPTX
Introduction to github slideshare
Intro to Git and GitHub
GitHub Basics - Derek Bable
Introduction to Git and GitHub Part 1
Introduction to GitHub
Intro to Git and GitHub
Intro to Git, GitHub, and Devpost
Git, GitHub and Open Source
Introduction to github slideshare

What's hot (19)

PPTX
Git tutorial
PDF
Learning git
PPTX
Introduction to git & GitHub
PPTX
Git and Github Session
PPTX
Git 101
PDF
Git - An Introduction
PPTX
Git 101 for Beginners
PPTX
Github basics
PPTX
PDF
Introduction to Git and Github
KEY
Introduction To Git
PDF
Git Started With Git
PPTX
Github
PPT
Introduction to Git and Github
PDF
Teaching a Designer to Use GitHub
PPTX
Introduction to Git and GitHub Part 2
PDF
Git and github 101
PPTX
Workshop on Git and GitHub
PDF
Github Case Study By Amil Ali
Git tutorial
Learning git
Introduction to git & GitHub
Git and Github Session
Git 101
Git - An Introduction
Git 101 for Beginners
Github basics
Introduction to Git and Github
Introduction To Git
Git Started With Git
Github
Introduction to Git and Github
Teaching a Designer to Use GitHub
Introduction to Git and GitHub Part 2
Git and github 101
Workshop on Git and GitHub
Github Case Study By Amil Ali
Ad

Similar to Git and GitHub crash course (20)

PPTX
Git and GitHub (1).pptx
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
PPTX
tech winter break workshop on git &git hub.pptx
PPTX
Git and GitHub workshop of GDG on Campus UNSTPB
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
PDF
GDSC GIT AND GITHUB
PDF
GIT_GITHUB_2016_06_17
PPTX
Git and GitHub Presentation of GDG on Campus UNSTPB
PPTX
Introduction to Git and Github
PPTX
Get your Git on GitHub
PDF
Git Hub Platform
PPTX
Beginner's guide to git and github
PPTX
GitHub Event.pptx
PDF
RailsGirls Rotterdam - Github (and Octocats!)
PDF
Introducing Github and Octocats by Tony Bangratz
PDF
Git Init (Introduction to Git)
PPTX
Intro. to Git and Github
PDF
A Tutorial for GitHub.pdf
PDF
A Tutorial for GitHub.pdf
PDF
GDSC ZHCET GitHub Session.pdf
Git and GitHub (1).pptx
Git and GitHub Workshop of GDG on Campus UNSTPB
tech winter break workshop on git &git hub.pptx
Git and GitHub workshop of GDG on Campus UNSTPB
Git and GitHub Workshop of GDG on Campus UNSTPB
GDSC GIT AND GITHUB
GIT_GITHUB_2016_06_17
Git and GitHub Presentation of GDG on Campus UNSTPB
Introduction to Git and Github
Get your Git on GitHub
Git Hub Platform
Beginner's guide to git and github
GitHub Event.pptx
RailsGirls Rotterdam - Github (and Octocats!)
Introducing Github and Octocats by Tony Bangratz
Git Init (Introduction to Git)
Intro. to Git and Github
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
GDSC ZHCET GitHub Session.pdf
Ad

Recently uploaded (20)

PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
composite construction of structures.pdf
PPTX
web development for engineering and engineering
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Current and future trends in Computer Vision.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPT
Mechanical Engineering MATERIALS Selection
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
additive manufacturing of ss316l using mig welding
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Automation-in-Manufacturing-Chapter-Introduction.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
composite construction of structures.pdf
web development for engineering and engineering
bas. eng. economics group 4 presentation 1.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
CYBER-CRIMES AND SECURITY A guide to understanding
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Current and future trends in Computer Vision.pptx
OOP with Java - Java Introduction (Basics)
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mechanical Engineering MATERIALS Selection

Git and GitHub crash course

  • 1. Git and GitHub crash Course by Mireia Sangalo @MyPitit
  • 2. 1. What is GitHub 2. What is Git 3. Diferences? 4. Git flow 1. Agenda
  • 3. 2. Agenda GitHub A walkthrough GitHub platform: 1. How to create an organisation 2. How to create a repository 3. Raising issues 4. Creating pull requests 5. Merging pull requests 6. Introduction to Wiki pages
  • 4. Git 1. Clone a repository 2. Create / delete / change branch 3. Add / Push / Commit 4. Pull from master 3. Agenda
  • 6. 1. What is GitHub 2. What is Git 3. Diferences? 4. Git flow 1. Agenda
  • 7. 1.1. What is GitHub? • Web-based Git repository hosting service. • It can be public or private, you can choose. • If you want to create a private repositories you will need to pay a small fee. • If your repositories are public you can use the service for free.
  • 8. 1. What is GitHub 2. What is Git 3. Diferences? 4. GitHub flow 1. Agenda
  • 9. 1. 2. What is Git? Git is a free and open source distributed version control system that is used for software development.
  • 10. Git was initially designed and developed by Linus Torvalds for Linux kernel development in 2005.
  • 11. 1. What is GitHub 2. What is Git 3. Diferences? 4. GitHub flow 1. Agenda
  • 13. • GitHub is a Git repository hosting service. • GitHub provides Web-based graphical interface. • Git is a command line tool. • With GitHub you can copy a repository from one user’s account to another (fork). You can send notifications (pull request). You can merge the changes with one click.
  • 14. 1. What is GitHub 2. What is Git 3. Diferences? 4. GitHub flow 1. Agenda
  • 15. 1. 4. GitHub flow
  • 17. 2. Agenda GitHub A walkthrough GitHub platform: 1. How to create an organisation 2. How to create a repository 3. Raising issues 4. Creating pull requests 5. Merging pull requests 6. Introduction to Wiki pages 7. README
  • 18. 2. 1. How to create an organisation
  • 19. 2. Agenda GitHub A walkthrough GitHub platform: 1. How to create an organisation 2. How to create a repository 3. Raising issues 4. Creating pull requests 5. Merging pull requests 6. Introduction to Wiki pages 7. README
  • 20. 2. 2. How to create a repository
  • 21. 2. Agenda GitHub A walkthrough GitHub platform: 1. How to create an organisation 2. How to create a repository 3. Raising issues 4. Creating pull requests 5. Merging pull requests 6. Introduction to Wiki pages 7. README
  • 22. 2. 3. Raising Issues
  • 23. 2. Agenda GitHub A walkthrough GitHub platform: 1. How to create an organisation 2. How to create a repository 3. Raising issues 4. Creating pull requests 5. Merging pull requests 6. Introduction to Wiki pages 7. README
  • 24. 2. 4. Creating a pull request
  • 25. 2. Agenda GitHub A walkthrough GitHub platform: 1. How to create an organisation 2. How to create a repository 3. Raising issues 4. Creating pull requests 5. Merging pull requests 6. Introduction to Wiki pages 7. README
  • 26. 2. 5. Merging a pull request
  • 27. 2. Agenda GitHub A walkthrough GitHub platform: 1. How to create an organisation 2. How to create a repository 3. Raising issues 4. Creating pull requests 5. Merging pull requests 6. Introduction to Wiki pages 7. README
  • 29. 2. Agenda GitHub A walkthrough GitHub platform: 1. How to create an organisation 2. How to create a repository 3. Raising issues 4. Creating pull requests 5. Merging pull requests 6. Introduction to Wiki pages 7. README
  • 32. Git 1. Clone a repository 2. Create / delete / change branch 3. Add / Push / Commit 4. Pull from master 3. Agenda
  • 33. 3. 1. Clone a repository $ git clone [email protected]:GitHubTutorialQUML/Tutorials.git Cloning into 'Tutorials'... remote: Counting objects: 3, done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (3/3), done. Checking connectivity... done.
  • 34. Git 1. Clone a repository 2. Create / delete / change branch 3. Add / Push / Commit 4. Pull from master 3. Agenda
  • 35. Branches Why do you need branches?
  • 37. 3. 2. Create a new branch $ git branch example $ git branch   example * master
  • 38. 3. 2. Changing branches $ git checkout example Switched to branch 'example' $ git checkout master Switched to branch 'master' Your branch is up-to-date with 'origin/master'.
  • 39. 3. 2. Delete a branch $ git branch -D example Deleted branch example (was 5d0662d).
  • 40. Git 1. Clone a repository 2. Create / delete / change branch 3. Add / Push / Commit 4. Pull from master 3. Agenda
  • 41. 3. 3. Add / Push / Commit $ git add . $ git commit -m "my 1st commit" [example 5d0662d] my 1st commit  1 file changed, 3 insertions(+), 1 deletion(-) $ git push origin example Counting objects: 3, done. Writing objects: 100% (3/3), 271 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) To [email protected]:GitHubTutorialQUML/Tutorials.git  * [new branch]      example -> example
  • 44. What is a merge conflict?
  • 46. Git 1. Clone a repository 2. Create / delete / change branch 3. Add / Push / Commit 4. Pull from master 3. Agenda
  • 47. 3. 4. Pull from master mypitit@nietzsche: ~/Desktop/example/Tutorials $ git pull <remote> remote: Counting objects: 11, done. remote: Compressing objects: 100% (5/5), done. remote: Total 7 (delta 2), reused 0 (delta 0) Unpacking objects: 100% (7/7), done. From ssh://my.remote.host.com/~/git/myproject * branch master -> FETCH_HEAD Updating 9d447d2..f74fb21 Fast forward app/controllers/tutorials | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)