SlideShare uma empresa Scribd logo
1 de 14
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 isn’t the only version control software but I (and most people)
think it’s 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 didn’t commit his code on time
Key concepts (cont’d)
• 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 don’t 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 (cont’d)
• 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 (cont’d)
• 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

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

A Practical Introduction to git
A Practical Introduction to gitA Practical Introduction to git
A Practical Introduction to git
 
Git Tutorial
Git TutorialGit Tutorial
Git Tutorial
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
 
git and github
git and githubgit and github
git and github
 
GitHub Presentation
GitHub PresentationGitHub Presentation
GitHub Presentation
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
HacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHub
 
Git and github fundamentals
Git and github fundamentalsGit and github fundamentals
Git and github fundamentals
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
 
Git Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basicsGit Obstacle Course: Stop BASHing your head and break down the basics
Git Obstacle Course: Stop BASHing your head and break down the basics
 
Version Control History and Git Basics
Version Control History and Git BasicsVersion Control History and Git Basics
Version Control History and Git Basics
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Mini git tutorial
Mini git tutorialMini git tutorial
Mini git tutorial
 
Git 101
Git 101Git 101
Git 101
 
Git,Github,How to host using Github
Git,Github,How to host using GithubGit,Github,How to host using Github
Git,Github,How to host using Github
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
Git & Github @ ROSEdu CDL
Git & Github @ ROSEdu CDLGit & Github @ ROSEdu CDL
Git & Github @ ROSEdu CDL
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 

Semelhante a Demo

Git Introductive
Git IntroductiveGit Introductive
Git Introductive
Adham Saad
 

Semelhante a Demo (20)

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
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
git and github-1.pptx
git and github-1.pptxgit and github-1.pptx
git and github-1.pptx
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIs
 
Git & GitHub N00bs
Git & GitHub N00bsGit & GitHub N00bs
Git & GitHub N00bs
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
 
Git Introductive
Git IntroductiveGit Introductive
Git Introductive
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Git hub
Git hubGit hub
Git hub
 
Intro to Git for Drupal 7
Intro to Git for Drupal 7Intro to Git for Drupal 7
Intro to Git for Drupal 7
 
CSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GITCSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GIT
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHub
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

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 isn’t the only version control software but I (and most people) think it’s 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 didn’t commit his code on time
  • 8. Key concepts (cont’d) • 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 don’t 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 (cont’d) • 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
  • 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