SlideShare a Scribd company logo
1 of 32
Download to read offline
Overview
1.
Install git and create a GitHub account
2.
What is git?
3.
How does git work?
4.
What is GitHub?
5.
Quick example using git and GitHub
Install git
• Windows
- http://git-scm.com/download/win
• Linux (Debian)
- Command: sudo apt-get install git!
• Mac
- http://git-scm.com/download/mac
Create GitHub account
• www.github.com
• Free for public repositories
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 is a version control system!
• Distributed version control
• Users keep entire code and history
on their location machines
• Users can make any changes without
internet access
• (Except pushing and pulling changes
from a remote server)
What is git?
• Started in 2005
• Created by Linus Torvald to aid in
Linux kernel development
Git icon
What is git?
• Git isn’t the only version control
system
• But (we think) it’s the best
How does git work?
• Can be complicated at first, but
there are a few key concepts
• Important git terminology in
following slides are blue
Key Concepts: Snapshots
• The way git keeps track of your code
history
• Essentially records what all your files look
like at a given point in time
• You decide when to take a snapshot, and
of what files
• Have the ability to go back to visit any
snapshot
Key Concepts: Commit
• The act of creating a snapshot
• 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
Key Concepts: Commit
•  Commits contain three pieces of
information:
1. Information about how the files
changed from previously
2. A reference to the commit that came
before it •  Called the “parent commit”
3. A hash code name
•  Will look something like:
fb2d2ec5069fc6776c80b3ad6b7cbde3cade4e
Hash Code
Parent Commit
What was changed
Key Concepts: Repositories
• Often shortened to ‘repo’
• A collection of all the files and
the history of those files
• Consists of all your commits
• Can live on a local machine or on a
remote server (GitHub!)
Key Concepts: Cloning
• The act of copying a repository
from a remote server is called
cloning
• Cloning from a remote server
allows teams to work together
Key Concepts: Pulling
• The process of downloading commits
that don’t exist on your machine
from a remote repository is called
pulling changes
Key Concepts: Pushing
• The process of adding your local
changes to the remote repository is
called pushing changes
How do you make a commit anyway?
• There are a lot of ‘states’ and ‘places’
a file can be
• Local on your computer: the ‘working
directory’
• When a file is ready to be put in a
commit you add it onto the ‘index’ or
‘staging’
The process:
• Make some changes to a file
• Use the ‘git add’ command to put the
file onto the staging environment
• Use the ‘git commit’ command to
create a new commit’
What is GitHub?
• Largest web-based git repository
hosting service
• Allows for code collaboration with
anyone online
• Adds extra functionality on top of git
• UI, documentation, bug tracking, feature
requests, pull requests, and more!
What is GitHub?
• Founded in 2008
• Also has an Enterprise edition
for businesses
Additional Resources
• Official git site and tutorial:
https://git-scm.com/
• GitHub guides:
https://guides.github.com/
• Command cheatsheet:
https://training.github.com/kit/
downloads/github-git-cheat-sheet.pdf
Gitgithub101slideshare 150922131830-lva1-app6891

More Related Content

What's hot

What's hot (20)

Github
GithubGithub
Github
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
A Practical Introduction to git
A Practical Introduction to gitA Practical Introduction to git
A Practical Introduction to git
 
Git real slides
Git real slidesGit real slides
Git real slides
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
Git basics
Git basicsGit basics
Git basics
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Git 101
Git 101Git 101
Git 101
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
GitHub Presentation
GitHub PresentationGitHub Presentation
GitHub Presentation
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
 
An Introduction to Git
An Introduction to GitAn Introduction to Git
An Introduction to Git
 
Introduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsIntroduction to Git Commands and Concepts
Introduction to Git Commands and Concepts
 
Git basics
Git basicsGit basics
Git basics
 
Git tutorial
Git tutorial Git tutorial
Git tutorial
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Intro to Git, GitHub, and Devpost
Intro to Git, GitHub, and DevpostIntro to Git, GitHub, and Devpost
Intro to Git, GitHub, and Devpost
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
Git Tutorial
Git TutorialGit Tutorial
Git Tutorial
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 

Similar to Gitgithub101slideshare 150922131830-lva1-app6891

Untangling fall2017 week2_try2
Untangling fall2017 week2_try2Untangling fall2017 week2_try2
Untangling fall2017 week2_try2
Derek Jacoby
 

Similar to Gitgithub101slideshare 150922131830-lva1-app6891 (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
 
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 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
 
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
 
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
 
Quick and easy way to get started with Git & GitHub
Quick and easy way to get started with Git & GitHubQuick and easy way to get started with Git & GitHub
Quick and easy way to get started with Git & 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
 
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
 
Luis atencio on_git
Luis atencio on_gitLuis atencio on_git
Luis atencio on_git
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
Mini git tutorial
Mini git tutorialMini git tutorial
Mini git tutorial
 
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
 
Git
GitGit
Git
 
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
 
Untangling fall2017 week2
Untangling fall2017 week2Untangling fall2017 week2
Untangling fall2017 week2
 
Untangling fall2017 week2_try2
Untangling fall2017 week2_try2Untangling fall2017 week2_try2
Untangling fall2017 week2_try2
 
IS - section 1 - modifiedFinal information system.pptx
IS - section 1 - modifiedFinal information system.pptxIS - section 1 - modifiedFinal information system.pptx
IS - section 1 - modifiedFinal information system.pptx
 
git and github-1.pptx
git and github-1.pptxgit and github-1.pptx
git and github-1.pptx
 

Recently uploaded

%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 

Recently uploaded (20)

%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 

Gitgithub101slideshare 150922131830-lva1-app6891

  • 1.
  • 2. Overview 1. Install git and create a GitHub account 2. What is git? 3. How does git work? 4. What is GitHub? 5. Quick example using git and GitHub
  • 3.
  • 4. Install git • Windows - http://git-scm.com/download/win • Linux (Debian) - Command: sudo apt-get install git! • Mac - http://git-scm.com/download/mac
  • 5. Create GitHub account • www.github.com • Free for public repositories
  • 6.
  • 7. 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
  • 8.
  • 9. Git is a version control system! • Distributed version control • Users keep entire code and history on their location machines • Users can make any changes without internet access • (Except pushing and pulling changes from a remote server)
  • 10. What is git? • Started in 2005 • Created by Linus Torvald to aid in Linux kernel development Git icon
  • 11.
  • 12. What is git? • Git isn’t the only version control system • But (we think) it’s the best
  • 13.
  • 14. How does git work? • Can be complicated at first, but there are a few key concepts • Important git terminology in following slides are blue
  • 15. Key Concepts: Snapshots • The way git keeps track of your code history • Essentially records what all your files look like at a given point in time • You decide when to take a snapshot, and of what files • Have the ability to go back to visit any snapshot
  • 16. Key Concepts: Commit • The act of creating a snapshot • 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
  • 17. Key Concepts: Commit •  Commits contain three pieces of information: 1. Information about how the files changed from previously 2. A reference to the commit that came before it •  Called the “parent commit” 3. A hash code name •  Will look something like: fb2d2ec5069fc6776c80b3ad6b7cbde3cade4e
  • 19. Key Concepts: Repositories • Often shortened to ‘repo’ • A collection of all the files and the history of those files • Consists of all your commits • Can live on a local machine or on a remote server (GitHub!)
  • 20. Key Concepts: Cloning • The act of copying a repository from a remote server is called cloning • Cloning from a remote server allows teams to work together
  • 21. Key Concepts: Pulling • The process of downloading commits that don’t exist on your machine from a remote repository is called pulling changes
  • 22. Key Concepts: Pushing • The process of adding your local changes to the remote repository is called pushing changes
  • 23.
  • 24. How do you make a commit anyway? • There are a lot of ‘states’ and ‘places’ a file can be • Local on your computer: the ‘working directory’ • When a file is ready to be put in a commit you add it onto the ‘index’ or ‘staging’
  • 25. The process: • Make some changes to a file • Use the ‘git add’ command to put the file onto the staging environment • Use the ‘git commit’ command to create a new commit’
  • 26.
  • 27.
  • 28. What is GitHub? • Largest web-based git repository hosting service • Allows for code collaboration with anyone online • Adds extra functionality on top of git • UI, documentation, bug tracking, feature requests, pull requests, and more!
  • 29. What is GitHub? • Founded in 2008 • Also has an Enterprise edition for businesses
  • 30.
  • 31. Additional Resources • Official git site and tutorial: https://git-scm.com/ • GitHub guides: https://guides.github.com/ • Command cheatsheet: https://training.github.com/kit/ downloads/github-git-cheat-sheet.pdf