際際滷

際際滷Share a Scribd company logo
GETTING STARTED WITH GIT
AND GITHUB
BY
MIRACLE ANYANWU (a.k.a Polygod)
Overview
 Installing Git and create a GitHub account
 What is Git?
 What is GitHub?
 How does Git work?
 Quick math examples
Installing Git and creating an account on
GitHub
 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
Creating an account on GitHub
What is Git ?
 Git is a version control system that keeps track of your changes,
allows for collaborative development and allows you to know who
made a particular change and when that change was mad.
 It also allows you to revert changes and go back to a particular state
 It was created in 2005 by Linus Torvalds (Creator of Linux OS) to aid
him in the creation of the Linux Kernel
Why Git ?
 Git isnt the only version control software but I (and most people)
think its the best.
 Others includes: Mercurial, Subversion and Perforce
Key Concepts
 Snapshots- The way git keeps track of your code history. It records the
state of your codebase at a particular point in time. You can decide to go
back to any saved snapshot at any point in time.
 Commit  The act of creating a snapshot. A project is made up of multiple
commits. It contains the information about the files that changed, a
reference to the commit that came before it (called the parent commit),
and a hash code name (be3d3ec5069ef6524c80b3ad6b7cbde3cade4e) . It
can be a noun or verb
 I committed my code
 This guy didnt commit his code on time
Key concepts (contd)
 Repositories (Repo)  A collection of all the files and the history of
those files. It consists of the history of all the commits made to files
 It can live on your local machine or on a remote server (GitHub)
 The act of copying a repository from a remote server is called cloning
 The process of downloading commits that dont exist on your machine from a
remote repository is called pulling changes
 The process of adding your local changes to the remote repository is called
pushing changes
Key Concepts (contd)
 Branches  Like trees, branches allows us split our codebase into
single stand-alone functionalities. All commits in git lives on a branch.
The main branch in a project is called a master branch.
 There can be lots of branches but the parent branch is always called a master
branch
Key Concept (contd)
 Merging -
What does a typical project look like ?
So what does a HEAD mean ?
 A head is a reference to the most recent commit
What is GitHub ?
 Website  https://www.github.com
 Founded in 2008
 Largest web-based git repository hosting service
 Allows for code collaboration with anyone online
 Adds extra functionality on top of Git like UI, Documentation, bug
tracking, feature requests, pull requests and contribution charts
NOW YOU MAY CLAP

More Related Content

What's hot (20)

PDF
A Practical Introduction to git
Emanuele Olivetti
PDF
Git Tutorial
Pranav Kulkarni
PPTX
Introduction to git
Shilu Shrestha
PDF
Introduction to GitHub
Nishan Bose
PDF
git and github
Darren Oakley
PPTX
GitHub Presentation
BrianSchilder
PPTX
Git in 10 minutes
Safique Ahmed Faruque
PDF
Introduction to Git
Colin Su
PPTX
HacktoberFest-Git&GitHub
GDSCIIITBbsr
PPTX
Git and github fundamentals
RajKharvar
PPTX
Workshop on Git and GitHub
DSCVSSUT
PPTX
Git Obstacle Course: Stop BASHing your head and break down the basics
Chris Bohatka
PDF
Version Control History and Git Basics
Sreedath N S
PDF
Introduction to Git
Yan Vugenfirer
PDF
Mini git tutorial
Cristian Lucchesi
PPTX
Git 101
Kate Semizhon
PPTX
Git,Github,How to host using Github
Sujata Regoti
PPTX
Introduction to github slideshare
Rakesh Sukumar
PDF
Git & Github @ ROSEdu CDL
Alex Palcuie
A Practical Introduction to git
Emanuele Olivetti
Git Tutorial
Pranav Kulkarni
Introduction to git
Shilu Shrestha
Introduction to GitHub
Nishan Bose
git and github
Darren Oakley
GitHub Presentation
BrianSchilder
Git in 10 minutes
Safique Ahmed Faruque
Introduction to Git
Colin Su
HacktoberFest-Git&GitHub
GDSCIIITBbsr
Git and github fundamentals
RajKharvar
Workshop on Git and GitHub
DSCVSSUT
Git Obstacle Course: Stop BASHing your head and break down the basics
Chris Bohatka
Version Control History and Git Basics
Sreedath N S
Introduction to Git
Yan Vugenfirer
Mini git tutorial
Cristian Lucchesi
Git 101
Kate Semizhon
Git,Github,How to host using Github
Sujata Regoti
Introduction to github slideshare
Rakesh Sukumar
Git & Github @ ROSEdu CDL
Alex Palcuie

Similar to Demo (20)

PPTX
Git and Github
Akshay Vasava
PDF
Git 101: Git and GitHub for Beginners
HubSpot
PPTX
Beginner's guide to git and github
SahilSonar4
PPTX
Git&GitHub.pptx
KondiVenkatesh1
PPTX
GIT & Github introduction for beginners
riteshsingh3651
PDF
A Tutorial for GitHub.pdf
badrfathallah2
PDF
A Tutorial for GitHub.pdf
Amarnadh36
PDF
GDSC ZHCET GitHub Session.pdf
gdsczhcet
PPTX
Introduction to git hub
Naveen Pandey
PDF
Git and GitHub Info Session
SawanBhattacharya
PPTX
Introductio to Git and GitHub Session 2 by gdg on campus kab
makobisimon
PDF
git & GitHub workshop
Shubhendra Singh Chauhan
PPTX
git&github.pptx for all computer science
WARRIORFF1
KEY
Let's Git this Party Started: An Introduction to Git and GitHub
Kim Moir
PPTX
Introduction to Git and Github
Md Atique Ahmed Ziad
PPTX
GitHub_For_Beginners_Presentationss.pptx
ramyagirish78
PDF
Git Init (Introduction to Git)
GDSC UofT Mississauga
PDF
Getting started With GIT
GhadiAlGhosh
PDF
Beginner Workshop for Student Developers - Tratech-presentation.pdf
GDSCKNUST
PPTX
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI
Git and Github
Akshay Vasava
Git 101: Git and GitHub for Beginners
HubSpot
Beginner's guide to git and github
SahilSonar4
Git&GitHub.pptx
KondiVenkatesh1
GIT & Github introduction for beginners
riteshsingh3651
A Tutorial for GitHub.pdf
badrfathallah2
A Tutorial for GitHub.pdf
Amarnadh36
GDSC ZHCET GitHub Session.pdf
gdsczhcet
Introduction to git hub
Naveen Pandey
Git and GitHub Info Session
SawanBhattacharya
Introductio to Git and GitHub Session 2 by gdg on campus kab
makobisimon
git & GitHub workshop
Shubhendra Singh Chauhan
git&github.pptx for all computer science
WARRIORFF1
Let's Git this Party Started: An Introduction to Git and GitHub
Kim Moir
Introduction to Git and Github
Md Atique Ahmed Ziad
GitHub_For_Beginners_Presentationss.pptx
ramyagirish78
Git Init (Introduction to Git)
GDSC UofT Mississauga
Getting started With GIT
GhadiAlGhosh
Beginner Workshop for Student Developers - Tratech-presentation.pdf
GDSCKNUST
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI
Ad

Recently uploaded (20)

DOCX
DLL english grade five goof for one week
FlordelynGonzales1
PDF
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
PPTX
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
PPTX
How to use grouped() method in Odoo 18 - Odoo 際際滷s
Celine George
PPTX
How to Add New Item in CogMenu in Odoo 18
Celine George
PPTX
2025 Completing the Pre-SET Plan Form.pptx
mansk2
PDF
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
PPTX
ENGLISH -PPT- Week1 Quarter1 -day-1.pptx
garcialhavz
PPTX
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
PPTX
JSON, XML and Data Science introduction.pptx
Ramakrishna Reddy Bijjam
PDF
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
PPTX
How Physics Enhances Our Quality of Life.pptx
AngeliqueTolentinoDe
PPTX
SYMPATHOMIMETICS[ADRENERGIC AGONISTS] pptx
saip95568
PDF
Romanticism in Love and Sacrifice An Analysis of Oscar Wildes The Nightingal...
KaryanaTantri21
PPTX
How to Configure Refusal of Applicants in Odoo 18 Recruitment
Celine George
PPT
M&A5 Q1 1 differentiate evolving early Philippine conventional and contempora...
ErlizaRosete
PDF
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
PPTX
F-BLOCK ELEMENTS POWER POINT PRESENTATIONS
mprpgcwa2024
DOCX
ANNOTATION on objective 10 on pmes 2022-2025
joviejanesegundo1
PDF
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
DLL english grade five goof for one week
FlordelynGonzales1
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
How to use grouped() method in Odoo 18 - Odoo 際際滷s
Celine George
How to Add New Item in CogMenu in Odoo 18
Celine George
2025 Completing the Pre-SET Plan Form.pptx
mansk2
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
ENGLISH -PPT- Week1 Quarter1 -day-1.pptx
garcialhavz
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
JSON, XML and Data Science introduction.pptx
Ramakrishna Reddy Bijjam
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
How Physics Enhances Our Quality of Life.pptx
AngeliqueTolentinoDe
SYMPATHOMIMETICS[ADRENERGIC AGONISTS] pptx
saip95568
Romanticism in Love and Sacrifice An Analysis of Oscar Wildes The Nightingal...
KaryanaTantri21
How to Configure Refusal of Applicants in Odoo 18 Recruitment
Celine George
M&A5 Q1 1 differentiate evolving early Philippine conventional and contempora...
ErlizaRosete
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
F-BLOCK ELEMENTS POWER POINT PRESENTATIONS
mprpgcwa2024
ANNOTATION on objective 10 on pmes 2022-2025
joviejanesegundo1
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
Ad

Demo

  • 1. GETTING STARTED WITH GIT AND GITHUB BY MIRACLE ANYANWU (a.k.a Polygod)
  • 2. Overview Installing Git and create a GitHub account What is Git? What is GitHub? How does Git work? Quick math examples
  • 3. Installing Git and creating an account on GitHub 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
  • 5. What is Git ? Git is a version control system that keeps track of your changes, allows for collaborative development and allows you to know who made a particular change and when that change was mad. It also allows you to revert changes and go back to a particular state It was created in 2005 by Linus Torvalds (Creator of Linux OS) to aid him in the creation of the Linux Kernel
  • 6. Why Git ? Git isnt the only version control software but I (and most people) think its the best. Others includes: Mercurial, Subversion and Perforce
  • 7. Key Concepts Snapshots- The way git keeps track of your code history. It records the state of your codebase at a particular point in time. You can decide to go back to any saved snapshot at any point in time. Commit The act of creating a snapshot. A project is made up of multiple commits. It contains the information about the files that changed, a reference to the commit that came before it (called the parent commit), and a hash code name (be3d3ec5069ef6524c80b3ad6b7cbde3cade4e) . It can be a noun or verb I committed my code This guy didnt commit his code on time
  • 8. Key concepts (contd) Repositories (Repo) A collection of all the files and the history of those files. It consists of the history of all the commits made to files It can live on your local machine or on a remote server (GitHub) The act of copying a repository from a remote server is called cloning The process of downloading commits that dont exist on your machine from a remote repository is called pulling changes The process of adding your local changes to the remote repository is called pushing changes
  • 9. Key Concepts (contd) Branches Like trees, branches allows us split our codebase into single stand-alone functionalities. All commits in git lives on a branch. The main branch in a project is called a master branch. There can be lots of branches but the parent branch is always called a master branch
  • 10. Key Concept (contd) Merging -
  • 11. What does a typical project look like ?
  • 12. So what does a HEAD mean ? A head is a reference to the most recent commit
  • 13. What is GitHub ? Website https://www.github.com Founded in 2008 Largest web-based git repository hosting service Allows for code collaboration with anyone online Adds extra functionality on top of Git like UI, Documentation, bug tracking, feature requests, pull requests and contribution charts
  • 14. NOW YOU MAY CLAP