SlideShare a Scribd company logo
8
How Does Git Works?
• Commit
• Repositories
• Cloning
• Pulling
• Pushing
• Branches
• Merging
Git & GitHub By Robin 8
Most read
17
GitHub
• GitHub is a web-based hosting service for version
control using git
• www.github.com
• Largest web-based git repository hosting service
• Aka, hosts ‘remote repositories’
• Allows for code collaboration with anyone online
• Founded in 2008
• Free for students as part of the Student Developer
Pack.
Git & GitHub By Robin 17
Most read
21
Thank You All
Most read
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Overview
 What is Version Control?
 What is Git?
 How does Git work?
 What is GitHub?
 Install Git
Git & GitHub By Robin 2
1
What is Version Control?
• A system that keeps records of your
changes
• Allows for collaborative development
• Allows you to know who made what
changes and when
• Allows you to revert any changes and
go back to a previous state
Git & GitHub By Robin 4
2
What is Git?
• Global Information Tracker
• Git is a distributed version control system
• Every dev has a working copy of the code
and full change history on their local
machine ____By Linus Torvalds.
• Started in 2005
• Created by Linus Torvald to aid in Linux
kernel development
Git & GitHub By Robin 6
3
How Does Git Works?
• Commit
• Repositories
• Cloning
• Pulling
• Pushing
• Branches
• Merging
Git & GitHub By Robin 8
Commit
• Can be a noun or verb
• “I commited code”
• “I just made a new commit”
• Essentially, a project is made up of a bunch
of commits
• Commits contain three pieces of
information:
• Information about the changed from previous
• A reference to the parent commit
• A hash code name: f2d2ec5069fc6776c80b3ad6b7
Git & GitHub By Robin 9
Repositories
• The short form of repo is knows as
repository in Git
• It’s a collection of all the files and the
history of those files
• Basically it’s a place where all your hard
work is stored
Git & GitHub By Robin 10
Repositories --> Cloning
• The act of copying a repository from a
remote server is called cloning
• Cloning from a remote server allows teams
to work together
Git & GitHub By Robin 11
Repositories --> Pulling
• The process of downloading commits that
don’t exist on your machine from a remote
repository is called pulling changes
Git & GitHub By Robin 12
Repositories --> Pushing
• The process of adding your local changes to
the remote repository is called pushing
changes
Git & GitHub By Robin 13
Branches
• All commits in git live on some branch
• But there can be many, many branches
• The main branch in a project is called the
master branch
• A bunch of commits linked together that
live on some branch, contained in a
repository
Git & GitHub By Robin 14
Merging
• Once you’re done with your feature, you
merge it back into master
Git & GitHub By Robin 15
4
GitHub
• GitHub is a web-based hosting service for version
control using git
• www.github.com
• Largest web-based git repository hosting service
• Aka, hosts ‘remote repositories’
• Allows for code collaboration with anyone online
• Founded in 2008
• Free for students as part of the Student Developer
Pack.
Git & GitHub By Robin 17
BitBucket
• www.bitbucket.org
• Largest web-based git repository hosting service
• Allows for code collaboration with anyone online
• Adds extra functionality on top of git
• Founded in 2010
• Free for up to 5 users
Git & GitHub By Robin 18
5
Install Git
• Linux (Debian) –
Command: sudo apt-get install git
• Linux (Fedora) –
Command: sudo yum install git
• Mac –
http://git-scm.com/download/mac
• Windows –
http://git-scm.com/download/win
Git & GitHub By Robin 20
Thank You All

More Related Content

What's hot (20)

Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
Anurag Upadhaya
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
Panagiotis Papadopoulos
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
Sage Sharp
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
Veronica Ojochona Michael (MCP)
 
Learning git
Learning gitLearning git
Learning git
Sid Anand
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
glen_a_smith
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
Nicolás Tourné
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
Senthilkumar Gopal
 
Github
GithubGithub
Github
Nikhil Baby
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
Vikram SV
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
Safique Ahmed Faruque
 
Git workflows presentation
Git workflows presentationGit workflows presentation
Git workflows presentation
Mack Hardy
 
Git basics
Git basicsGit basics
Git basics
GHARSALLAH Mohamed
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
Lukas Fittl
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
Dilum Navanjana
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
E Carter
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
Nilay Binjola
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
Yoad Snapir
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
Lee Hanxue
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
Sage Sharp
 
Learning git
Learning gitLearning git
Learning git
Sid Anand
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
glen_a_smith
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
Nicolás Tourné
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
Vikram SV
 
Git workflows presentation
Git workflows presentationGit workflows presentation
Git workflows presentation
Mack Hardy
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
Lukas Fittl
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
Dilum Navanjana
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
E Carter
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
Nilay Binjola
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
Lee Hanxue
 

Similar to Git and GitHub | Concept about Git and GitHub Process | Git Process overview (20)

Git and github
Git and githubGit and github
Git and github
Sayantika Banik
 
Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891
Brian Okinyi
 
Do you git it
Do you git it Do you git it
Do you git it
Hridyesh Bisht
 
O365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van RousseltO365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van Rousselt
NCCOMMS
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
HubSpot
 
Introduction-to-Git-Github-andWorshop.pdf
Introduction-to-Git-Github-andWorshop.pdfIntroduction-to-Git-Github-andWorshop.pdf
Introduction-to-Git-Github-andWorshop.pdf
SwasKare
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
Betclic Everest Group Tech Team
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
badrfathallah2
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Amarnadh36
 
Git and Github
Git and GithubGit and Github
Git and Github
Akshay Vasava
 
Git&GitHub.pptx
Git&GitHub.pptxGit&GitHub.pptx
Git&GitHub.pptx
KondiVenkatesh1
 
Git
GitGit
Git
MD ARIFUL ISLAM
 
Version control with Git & GitHub
Version control with Git & GitHubVersion control with Git & GitHub
Version control with Git & GitHub
benko
 
Intro to Git and Github
Intro to Git and GithubIntro to Git and Github
Intro to Git and Github
Andrew Babiec
 
Basics of git
Basics of gitBasics of git
Basics of git
Ahmed Al-sabsab
 
git Introduction.pptx
git Introduction.pptxgit Introduction.pptx
git Introduction.pptx
PrakharYadav58
 
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
AbhijitNarayan2
 
Intro to git
Intro to gitIntro to git
Intro to git
josh_cutler
 
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
Git Pocket Guide A Working Introduction 1st Edition Richard E. SilvermanGit Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
fingonbinka66
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
Sameera Wijesekara
 
Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891
Brian Okinyi
 
O365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van RousseltO365Con18 - Git and GitHub - Rick van Rousselt
O365Con18 - Git and GitHub - Rick van Rousselt
NCCOMMS
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
HubSpot
 
Introduction-to-Git-Github-andWorshop.pdf
Introduction-to-Git-Github-andWorshop.pdfIntroduction-to-Git-Github-andWorshop.pdf
Introduction-to-Git-Github-andWorshop.pdf
SwasKare
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
badrfathallah2
 
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Amarnadh36
 
Version control with Git & GitHub
Version control with Git & GitHubVersion control with Git & GitHub
Version control with Git & GitHub
benko
 
Intro to Git and Github
Intro to Git and GithubIntro to Git and Github
Intro to Git and Github
Andrew Babiec
 
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, TrivandrumIntroduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
Introduction to Git and Github - Google Developer Student Clubs CET, Trivandrum
AbhijitNarayan2
 
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
Git Pocket Guide A Working Introduction 1st Edition Richard E. SilvermanGit Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
fingonbinka66
 
Ad

Recently uploaded (20)

0b - THE ROMANTIC ERA: FEELINGS AND IDENTITY.pptx
0b - THE ROMANTIC ERA: FEELINGS AND IDENTITY.pptx0b - THE ROMANTIC ERA: FEELINGS AND IDENTITY.pptx
0b - THE ROMANTIC ERA: FEELINGS AND IDENTITY.pptx
Julián Jesús Pérez Fernández
 
QUIZ-O-FORCE FINAL SET BY SUDIPTA & SUBHAM.pptx
QUIZ-O-FORCE FINAL SET BY SUDIPTA & SUBHAM.pptxQUIZ-O-FORCE FINAL SET BY SUDIPTA & SUBHAM.pptx
QUIZ-O-FORCE FINAL SET BY SUDIPTA & SUBHAM.pptx
Sourav Kr Podder
 
How to Use Owl Slots in Odoo 17 - Odoo Slides
How to Use Owl Slots in Odoo 17 - Odoo SlidesHow to Use Owl Slots in Odoo 17 - Odoo Slides
How to Use Owl Slots in Odoo 17 - Odoo Slides
Celine George
 
Diana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda - A Wauconda-Based EducatorDiana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda
 
Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...
EduSkills OECD
 
LDMMIA Free Reiki Yoga S7 Weekly Workshops
LDMMIA Free Reiki Yoga S7 Weekly WorkshopsLDMMIA Free Reiki Yoga S7 Weekly Workshops
LDMMIA Free Reiki Yoga S7 Weekly Workshops
LDM & Mia eStudios
 
Multicultural approach in education - B.Ed
Multicultural approach in education - B.EdMulticultural approach in education - B.Ed
Multicultural approach in education - B.Ed
prathimagowda443
 
"Orthoptera: Grasshoppers, Crickets, and Katydids pptx
"Orthoptera: Grasshoppers, Crickets, and Katydids pptx"Orthoptera: Grasshoppers, Crickets, and Katydids pptx
"Orthoptera: Grasshoppers, Crickets, and Katydids pptx
Arshad Shaikh
 
Uterine Prolapse, causes type and classification,its managment
Uterine Prolapse, causes type and classification,its managmentUterine Prolapse, causes type and classification,its managment
Uterine Prolapse, causes type and classification,its managment
Ritu480198
 
STUDENT LOAN TRUST FUND DEFAULTERS GHANA
STUDENT LOAN TRUST FUND DEFAULTERS GHANASTUDENT LOAN TRUST FUND DEFAULTERS GHANA
STUDENT LOAN TRUST FUND DEFAULTERS GHANA
Kweku Zurek
 
Active Surveillance For Localized Prostate Cancer A New Paradigm For Clinical...
Active Surveillance For Localized Prostate Cancer A New Paradigm For Clinical...Active Surveillance For Localized Prostate Cancer A New Paradigm For Clinical...
Active Surveillance For Localized Prostate Cancer A New Paradigm For Clinical...
wygalkelceqg
 
Swachata Quiz - Prelims - 01.10.24 - Quiz Club IIT Patna
Swachata Quiz - Prelims - 01.10.24 - Quiz Club IIT PatnaSwachata Quiz - Prelims - 01.10.24 - Quiz Club IIT Patna
Swachata Quiz - Prelims - 01.10.24 - Quiz Club IIT Patna
Quiz Club, Indian Institute of Technology, Patna
 
"Dictyoptera: The Order of Cockroaches and Mantises" Or, more specifically: ...
"Dictyoptera: The Order of Cockroaches and Mantises"  Or, more specifically: ..."Dictyoptera: The Order of Cockroaches and Mantises"  Or, more specifically: ...
"Dictyoptera: The Order of Cockroaches and Mantises" Or, more specifically: ...
Arshad Shaikh
 
How to Create Time Off Request in Odoo 18 Time Off
How to Create Time Off Request in Odoo 18 Time OffHow to Create Time Off Request in Odoo 18 Time Off
How to Create Time Off Request in Odoo 18 Time Off
Celine George
 
Odoo 18 Point of Sale PWA - Odoo Slides
Odoo 18 Point of Sale PWA  - Odoo  SlidesOdoo 18 Point of Sale PWA  - Odoo  Slides
Odoo 18 Point of Sale PWA - Odoo Slides
Celine George
 
Exploring Identity Through Colombian Companies
Exploring Identity Through Colombian CompaniesExploring Identity Through Colombian Companies
Exploring Identity Through Colombian Companies
OlgaLeonorTorresSnch
 
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
SweetytamannaMohapat
 
Introduction to Online CME for Nurse Practitioners.pdf
Introduction to Online CME for Nurse Practitioners.pdfIntroduction to Online CME for Nurse Practitioners.pdf
Introduction to Online CME for Nurse Practitioners.pdf
CME4Life
 
How to Setup Renewal of Subscription in Odoo 18
How to Setup Renewal of Subscription in Odoo 18How to Setup Renewal of Subscription in Odoo 18
How to Setup Renewal of Subscription in Odoo 18
Celine George
 
Dashboard Overview in Odoo 18 - Odoo Slides
Dashboard Overview in Odoo 18 - Odoo SlidesDashboard Overview in Odoo 18 - Odoo Slides
Dashboard Overview in Odoo 18 - Odoo Slides
Celine George
 
QUIZ-O-FORCE FINAL SET BY SUDIPTA & SUBHAM.pptx
QUIZ-O-FORCE FINAL SET BY SUDIPTA & SUBHAM.pptxQUIZ-O-FORCE FINAL SET BY SUDIPTA & SUBHAM.pptx
QUIZ-O-FORCE FINAL SET BY SUDIPTA & SUBHAM.pptx
Sourav Kr Podder
 
How to Use Owl Slots in Odoo 17 - Odoo Slides
How to Use Owl Slots in Odoo 17 - Odoo SlidesHow to Use Owl Slots in Odoo 17 - Odoo Slides
How to Use Owl Slots in Odoo 17 - Odoo Slides
Celine George
 
Diana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda - A Wauconda-Based EducatorDiana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda
 
Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...
EduSkills OECD
 
LDMMIA Free Reiki Yoga S7 Weekly Workshops
LDMMIA Free Reiki Yoga S7 Weekly WorkshopsLDMMIA Free Reiki Yoga S7 Weekly Workshops
LDMMIA Free Reiki Yoga S7 Weekly Workshops
LDM & Mia eStudios
 
Multicultural approach in education - B.Ed
Multicultural approach in education - B.EdMulticultural approach in education - B.Ed
Multicultural approach in education - B.Ed
prathimagowda443
 
"Orthoptera: Grasshoppers, Crickets, and Katydids pptx
"Orthoptera: Grasshoppers, Crickets, and Katydids pptx"Orthoptera: Grasshoppers, Crickets, and Katydids pptx
"Orthoptera: Grasshoppers, Crickets, and Katydids pptx
Arshad Shaikh
 
Uterine Prolapse, causes type and classification,its managment
Uterine Prolapse, causes type and classification,its managmentUterine Prolapse, causes type and classification,its managment
Uterine Prolapse, causes type and classification,its managment
Ritu480198
 
STUDENT LOAN TRUST FUND DEFAULTERS GHANA
STUDENT LOAN TRUST FUND DEFAULTERS GHANASTUDENT LOAN TRUST FUND DEFAULTERS GHANA
STUDENT LOAN TRUST FUND DEFAULTERS GHANA
Kweku Zurek
 
Active Surveillance For Localized Prostate Cancer A New Paradigm For Clinical...
Active Surveillance For Localized Prostate Cancer A New Paradigm For Clinical...Active Surveillance For Localized Prostate Cancer A New Paradigm For Clinical...
Active Surveillance For Localized Prostate Cancer A New Paradigm For Clinical...
wygalkelceqg
 
"Dictyoptera: The Order of Cockroaches and Mantises" Or, more specifically: ...
"Dictyoptera: The Order of Cockroaches and Mantises"  Or, more specifically: ..."Dictyoptera: The Order of Cockroaches and Mantises"  Or, more specifically: ...
"Dictyoptera: The Order of Cockroaches and Mantises" Or, more specifically: ...
Arshad Shaikh
 
How to Create Time Off Request in Odoo 18 Time Off
How to Create Time Off Request in Odoo 18 Time OffHow to Create Time Off Request in Odoo 18 Time Off
How to Create Time Off Request in Odoo 18 Time Off
Celine George
 
Odoo 18 Point of Sale PWA - Odoo Slides
Odoo 18 Point of Sale PWA  - Odoo  SlidesOdoo 18 Point of Sale PWA  - Odoo  Slides
Odoo 18 Point of Sale PWA - Odoo Slides
Celine George
 
Exploring Identity Through Colombian Companies
Exploring Identity Through Colombian CompaniesExploring Identity Through Colombian Companies
Exploring Identity Through Colombian Companies
OlgaLeonorTorresSnch
 
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
SweetytamannaMohapat
 
Introduction to Online CME for Nurse Practitioners.pdf
Introduction to Online CME for Nurse Practitioners.pdfIntroduction to Online CME for Nurse Practitioners.pdf
Introduction to Online CME for Nurse Practitioners.pdf
CME4Life
 
How to Setup Renewal of Subscription in Odoo 18
How to Setup Renewal of Subscription in Odoo 18How to Setup Renewal of Subscription in Odoo 18
How to Setup Renewal of Subscription in Odoo 18
Celine George
 
Dashboard Overview in Odoo 18 - Odoo Slides
Dashboard Overview in Odoo 18 - Odoo SlidesDashboard Overview in Odoo 18 - Odoo Slides
Dashboard Overview in Odoo 18 - Odoo Slides
Celine George
 
Ad

Git and GitHub | Concept about Git and GitHub Process | Git Process overview

  • 2. Overview  What is Version Control?  What is Git?  How does Git work?  What is GitHub?  Install Git Git & GitHub By Robin 2
  • 3. 1
  • 4. What is Version Control? • A system that keeps records of your changes • Allows for collaborative development • Allows you to know who made what changes and when • Allows you to revert any changes and go back to a previous state Git & GitHub By Robin 4
  • 5. 2
  • 6. What is Git? • Global Information Tracker • Git is a distributed version control system • Every dev has a working copy of the code and full change history on their local machine ____By Linus Torvalds. • Started in 2005 • Created by Linus Torvald to aid in Linux kernel development Git & GitHub By Robin 6
  • 7. 3
  • 8. How Does Git Works? • Commit • Repositories • Cloning • Pulling • Pushing • Branches • Merging Git & GitHub By Robin 8
  • 9. Commit • Can be a noun or verb • “I commited code” • “I just made a new commit” • Essentially, a project is made up of a bunch of commits • Commits contain three pieces of information: • Information about the changed from previous • A reference to the parent commit • A hash code name: f2d2ec5069fc6776c80b3ad6b7 Git & GitHub By Robin 9
  • 10. Repositories • The short form of repo is knows as repository in Git • It’s a collection of all the files and the history of those files • Basically it’s a place where all your hard work is stored Git & GitHub By Robin 10
  • 11. Repositories --> Cloning • The act of copying a repository from a remote server is called cloning • Cloning from a remote server allows teams to work together Git & GitHub By Robin 11
  • 12. Repositories --> Pulling • The process of downloading commits that don’t exist on your machine from a remote repository is called pulling changes Git & GitHub By Robin 12
  • 13. Repositories --> Pushing • The process of adding your local changes to the remote repository is called pushing changes Git & GitHub By Robin 13
  • 14. Branches • All commits in git live on some branch • But there can be many, many branches • The main branch in a project is called the master branch • A bunch of commits linked together that live on some branch, contained in a repository Git & GitHub By Robin 14
  • 15. Merging • Once you’re done with your feature, you merge it back into master Git & GitHub By Robin 15
  • 16. 4
  • 17. GitHub • GitHub is a web-based hosting service for version control using git • www.github.com • Largest web-based git repository hosting service • Aka, hosts ‘remote repositories’ • Allows for code collaboration with anyone online • Founded in 2008 • Free for students as part of the Student Developer Pack. Git & GitHub By Robin 17
  • 18. BitBucket • www.bitbucket.org • Largest web-based git repository hosting service • Allows for code collaboration with anyone online • Adds extra functionality on top of git • Founded in 2010 • Free for up to 5 users Git & GitHub By Robin 18
  • 19. 5
  • 20. Install Git • Linux (Debian) – Command: sudo apt-get install git • Linux (Fedora) – Command: sudo yum install git • Mac – http://git-scm.com/download/mac • Windows – http://git-scm.com/download/win Git & GitHub By Robin 20