SlideShare a Scribd company logo
1 of 37
Download to read offline
Git 101:
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
Github icon
Install git and a create GitHub
account1
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
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
What is git?2
What is version control?
•  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?3
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
•  Your snapshots from later on will stay
around, too
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
Key Concepts: Repositories
•  Often shortened to ‘repo’
•  A collection of all the files and
the history of those files
•  Consists of all your commits
•  Place where all your hard work is
stored
Key Concepts: Repositories
•  Can live on a local machine or
on a remote server (GitHub!)
•  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: Repositories
•  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: 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
So, what does a typical project look like?
•  A bunch of commits linked
together that live on some branch,
contained in a repository
•  Following images taken and
modified from:
•  http://marklodato.github.io/visual-git-
guide/index-en.html
•  Also a good tutorial!
So, what does a typical project look like?
Time going forward
So, what is HEAD?
Time going forward
So, what is HEAD?
•  A reference to the most recent
commit
Time going forward
So, what is HEAD?
Time going forward
•  A reference to the most recent
commit
•  (in most cases – not always true!)
So, what is MASTER?
Time going forward
•  The main branch in your project
•  Doesn’t have to be called master, but almost
always is!
Key Concepts: Branching off of the master
branch
•  The start of a branch points to a
specific commit
•  When you want to make any
changes to your project you
make a new branch based on a
commit
Key Concepts: Branching off of the master
branch
Time going forward
Images from:
http://codingdomain.com/
git/merging/
Key Concepts: Merging
•  Once you’re done with your
feature, you merge it back into
master
Time going forward
Key Concepts: 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’
•  Staging is the new preferred term – but
you can see both ‘index’ and ‘staging’
being used
Key Concepts: How do you make a commit
anyway?
•  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’
Key Concepts: How do you make a commit
anyway?
Time going forward
Key Concepts: How do you make a commit
anyway?
Time going forward
What is GitHub?4
What is GitHub?
•  www.github.com
•  Largest web-based git repository
hosting service
•  Aka, hosts ‘remote repositories’
•  Allows for code collaboration with
anyone online
•  Adds extra functionality on top of git
•  UI, documentation, bug tracking, feature
requests, pull requests, and more!
Octocat!
What is GitHub?
•  Founded in 2008
•  Also has an Enterprise edition
for businesses
Octocat!
Additional Resources
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
•  Interactive git tutorial:
https://try.github.io/levels/1/challenges/1
•  Visual/interactive cheatsheet:
http://ndpsoftware.com/git-cheatsheet.html

More Related Content

What's hot

Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash CourseNilay Binjola
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version ControlJeremy Coates
 
Learning git
Learning gitLearning git
Learning gitSid Anand
 
GIT presentation
GIT presentationGIT presentation
GIT presentationNaim Latifi
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Omar Fathy
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdfTilton2
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubVenkat Malladi
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Simplilearn
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An IntroductionBehzad Altaf
 

What's hot (20)

Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Git basics
Git basicsGit basics
Git basics
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
Git
GitGit
Git
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version Control
 
Git basic
Git basicGit basic
Git basic
 
Learning git
Learning gitLearning git
Learning git
 
GIT presentation
GIT presentationGIT presentation
GIT presentation
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
 
Github
GithubGithub
Github
 
Git commands
Git commandsGit commands
Git commands
 
Git best practices workshop
Git best practices workshopGit best practices workshop
Git best practices workshop
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 

Viewers also liked

Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideRohit Arora
 
Git and GitHub for Documentation
Git and GitHub for DocumentationGit and GitHub for Documentation
Git and GitHub for DocumentationAnne Gentle
 
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 GitGeoff Hoffman
 
Getting started with Jenkins
Getting started with JenkinsGetting started with Jenkins
Getting started with JenkinsEdureka!
 
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and ComposeDockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and ComposeDocker, Inc.
 
Game of Codes: the Battle for CI
Game of Codes: the Battle for CIGame of Codes: the Battle for CI
Game of Codes: the Battle for CIAtlassian
 
Master Continuous Delivery with CloudBees Jenkins Platform
Master Continuous Delivery with CloudBees Jenkins PlatformMaster Continuous Delivery with CloudBees Jenkins Platform
Master Continuous Delivery with CloudBees Jenkins Platformdcjuengst
 
Dockercon2015 bamboo
Dockercon2015 bambooDockercon2015 bamboo
Dockercon2015 bambooSteve Smith
 
Ic maven jenkins_sonar
Ic maven jenkins_sonarIc maven jenkins_sonar
Ic maven jenkins_sonarRocío Muñoz
 
Bamboo - an introduction
Bamboo - an introductionBamboo - an introduction
Bamboo - an introductionSven Peters
 
Rise of the Machines - Automate your Development
Rise of the Machines - Automate your DevelopmentRise of the Machines - Automate your Development
Rise of the Machines - Automate your DevelopmentSven Peters
 
Using Docker for Testing
Using Docker for TestingUsing Docker for Testing
Using Docker for TestingCarlos Sanchez
 
Gitlab Training with GIT and SourceTree
Gitlab Training with GIT and SourceTreeGitlab Training with GIT and SourceTree
Gitlab Training with GIT and SourceTreeTeerapat Khunpech
 
Continuous Delivery with Jenkins and Wildfly (2014)
Continuous Delivery with Jenkins and Wildfly (2014)Continuous Delivery with Jenkins and Wildfly (2014)
Continuous Delivery with Jenkins and Wildfly (2014)Tracy Kennedy
 
GitFlow, SourceTree and GitLab
GitFlow, SourceTree and GitLabGitFlow, SourceTree and GitLab
GitFlow, SourceTree and GitLabShinu Suresh
 
Jenkins Docker
Jenkins DockerJenkins Docker
Jenkins DockerAlex Soto
 
DevOps and Continuous Delivery reference architectures for Docker
DevOps and Continuous Delivery reference architectures for DockerDevOps and Continuous Delivery reference architectures for Docker
DevOps and Continuous Delivery reference architectures for DockerSonatype
 
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Seven Habits of Highly Effective Jenkins Users (2014 edition!)Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Seven Habits of Highly Effective Jenkins Users (2014 edition!)Andrew Bayer
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to gitJoel Krebs
 

Viewers also liked (20)

Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guide
 
Git and GitHub for Documentation
Git and GitHub for DocumentationGit and GitHub for Documentation
Git and GitHub for Documentation
 
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
 
Getting started with Jenkins
Getting started with JenkinsGetting started with Jenkins
Getting started with Jenkins
 
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and ComposeDockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
 
Game of Codes: the Battle for CI
Game of Codes: the Battle for CIGame of Codes: the Battle for CI
Game of Codes: the Battle for CI
 
Master Continuous Delivery with CloudBees Jenkins Platform
Master Continuous Delivery with CloudBees Jenkins PlatformMaster Continuous Delivery with CloudBees Jenkins Platform
Master Continuous Delivery with CloudBees Jenkins Platform
 
Dockercon2015 bamboo
Dockercon2015 bambooDockercon2015 bamboo
Dockercon2015 bamboo
 
Ic maven jenkins_sonar
Ic maven jenkins_sonarIc maven jenkins_sonar
Ic maven jenkins_sonar
 
Bamboo - an introduction
Bamboo - an introductionBamboo - an introduction
Bamboo - an introduction
 
Rise of the Machines - Automate your Development
Rise of the Machines - Automate your DevelopmentRise of the Machines - Automate your Development
Rise of the Machines - Automate your Development
 
Using Docker for Testing
Using Docker for TestingUsing Docker for Testing
Using Docker for Testing
 
Gitlab Training with GIT and SourceTree
Gitlab Training with GIT and SourceTreeGitlab Training with GIT and SourceTree
Gitlab Training with GIT and SourceTree
 
Continuous Delivery with Jenkins and Wildfly (2014)
Continuous Delivery with Jenkins and Wildfly (2014)Continuous Delivery with Jenkins and Wildfly (2014)
Continuous Delivery with Jenkins and Wildfly (2014)
 
GitFlow, SourceTree and GitLab
GitFlow, SourceTree and GitLabGitFlow, SourceTree and GitLab
GitFlow, SourceTree and GitLab
 
Jenkins Docker
Jenkins DockerJenkins Docker
Jenkins Docker
 
DevOps and Continuous Delivery reference architectures for Docker
DevOps and Continuous Delivery reference architectures for DockerDevOps and Continuous Delivery reference architectures for Docker
DevOps and Continuous Delivery reference architectures for Docker
 
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Seven Habits of Highly Effective Jenkins Users (2014 edition!)Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
 
Greece debt
Greece debtGreece debt
Greece debt
 

Similar to Git 101: Git and GitHub for Beginners

Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891Brian Okinyi
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configurationKishor Kumar
 
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 RousseltNCCOMMS
 
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)Ahmed El-Arabawy
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIsTim Osborn
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hubNaveen Pandey
 
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 GitHubKim Moir
 
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 overviewRueful Robin
 
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 GitHubBigBlueHat
 
Intro to Git for Drupal 7
Intro to Git for Drupal 7Intro to Git for Drupal 7
Intro to Git for Drupal 7Chris Caple
 
Fundamentals of Git
Fundamentals of GitFundamentals of Git
Fundamentals of Gitcmckni3
 
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 & GitHubAshoka R K T
 
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 GITPouriaQashqai1
 

Similar to Git 101: Git and GitHub for Beginners (20)

Git and Github
Git and GithubGit and Github
Git and Github
 
Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891Gitgithub101slideshare 150922131830-lva1-app6891
Gitgithub101slideshare 150922131830-lva1-app6891
 
Git and github
Git and githubGit and github
Git and github
 
Demo
DemoDemo
Demo
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
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
 
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 for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIs
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
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 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
 
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
 
Intro to Git for Drupal 7
Intro to Git for Drupal 7Intro to Git for Drupal 7
Intro to Git for Drupal 7
 
git and github
git and githubgit and github
git and github
 
Fundamentals of Git
Fundamentals of GitFundamentals of Git
Fundamentals of Git
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
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
GitGit
Git
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
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
 

More from HubSpot

Cultura HubSpot - Cómo crear la mejor empresa posible
Cultura HubSpot - Cómo crear la mejor empresa posibleCultura HubSpot - Cómo crear la mejor empresa posible
Cultura HubSpot - Cómo crear la mejor empresa posibleHubSpot
 
Your Go-To-Market is Killing Your Business, and You Don't Even Know It
Your Go-To-Market is Killing Your Business, and You Don't Even Know ItYour Go-To-Market is Killing Your Business, and You Don't Even Know It
Your Go-To-Market is Killing Your Business, and You Don't Even Know ItHubSpot
 
The Hard Truth About Marketing
The Hard Truth About MarketingThe Hard Truth About Marketing
The Hard Truth About MarketingHubSpot
 
How HubSpot Builds its Engineering Culture (While Maintaining Speed)
How HubSpot Builds its Engineering Culture (While Maintaining Speed)How HubSpot Builds its Engineering Culture (While Maintaining Speed)
How HubSpot Builds its Engineering Culture (While Maintaining Speed)HubSpot
 
The Tech Scene in Berlin is Booming
The Tech Scene in Berlin is BoomingThe Tech Scene in Berlin is Booming
The Tech Scene in Berlin is BoomingHubSpot
 
Aligning Vectors: What Elon Musk Taught Me About Growing A Business
Aligning Vectors: What Elon Musk Taught Me About Growing A BusinessAligning Vectors: What Elon Musk Taught Me About Growing A Business
Aligning Vectors: What Elon Musk Taught Me About Growing A BusinessHubSpot
 
15 Stats Every Marketing Leader Needs to Know
15 Stats Every Marketing Leader Needs to Know15 Stats Every Marketing Leader Needs to Know
15 Stats Every Marketing Leader Needs to KnowHubSpot
 
Inbound Recruiting: Hire Top Talent By Thinking Like a Marketer
Inbound Recruiting: Hire Top Talent By Thinking Like a MarketerInbound Recruiting: Hire Top Talent By Thinking Like a Marketer
Inbound Recruiting: Hire Top Talent By Thinking Like a MarketerHubSpot
 
What's a Growth Stack? And why you should build one.
What's a Growth Stack? And why you should build one. What's a Growth Stack? And why you should build one.
What's a Growth Stack? And why you should build one. HubSpot
 
HubSpot Diversity Data 2016
HubSpot Diversity Data 2016HubSpot Diversity Data 2016
HubSpot Diversity Data 2016HubSpot
 
Add the Women Back: Wikipedia Edit-a-Thon
Add the Women Back: Wikipedia Edit-a-ThonAdd the Women Back: Wikipedia Edit-a-Thon
Add the Women Back: Wikipedia Edit-a-ThonHubSpot
 
What is Inbound Recruiting?
What is Inbound Recruiting?What is Inbound Recruiting?
What is Inbound Recruiting?HubSpot
 
Behind the Scenes: Launching HubSpot Tokyo
Behind the Scenes: Launching HubSpot TokyoBehind the Scenes: Launching HubSpot Tokyo
Behind the Scenes: Launching HubSpot TokyoHubSpot
 
25 Discovery Call Questions
25 Discovery Call Questions25 Discovery Call Questions
25 Discovery Call QuestionsHubSpot
 
How to Earn the Attention of Today's Buyer
How to Earn the Attention of Today's BuyerHow to Earn the Attention of Today's Buyer
How to Earn the Attention of Today's BuyerHubSpot
 
Class 1: Email Marketing Certification course: Email Marketing and Your Business
Class 1: Email Marketing Certification course: Email Marketing and Your BusinessClass 1: Email Marketing Certification course: Email Marketing and Your Business
Class 1: Email Marketing Certification course: Email Marketing and Your BusinessHubSpot
 
Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...
Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...
Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...HubSpot
 
10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot
 10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot 10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot
10 Things You Didn’t Know About Mobile Email from Litmus & HubSpotHubSpot
 
3 Proven Sales Email Templates Used by Successful Companies
3 Proven Sales Email Templates Used by Successful Companies3 Proven Sales Email Templates Used by Successful Companies
3 Proven Sales Email Templates Used by Successful CompaniesHubSpot
 
Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...
Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...
Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...HubSpot
 

More from HubSpot (20)

Cultura HubSpot - Cómo crear la mejor empresa posible
Cultura HubSpot - Cómo crear la mejor empresa posibleCultura HubSpot - Cómo crear la mejor empresa posible
Cultura HubSpot - Cómo crear la mejor empresa posible
 
Your Go-To-Market is Killing Your Business, and You Don't Even Know It
Your Go-To-Market is Killing Your Business, and You Don't Even Know ItYour Go-To-Market is Killing Your Business, and You Don't Even Know It
Your Go-To-Market is Killing Your Business, and You Don't Even Know It
 
The Hard Truth About Marketing
The Hard Truth About MarketingThe Hard Truth About Marketing
The Hard Truth About Marketing
 
How HubSpot Builds its Engineering Culture (While Maintaining Speed)
How HubSpot Builds its Engineering Culture (While Maintaining Speed)How HubSpot Builds its Engineering Culture (While Maintaining Speed)
How HubSpot Builds its Engineering Culture (While Maintaining Speed)
 
The Tech Scene in Berlin is Booming
The Tech Scene in Berlin is BoomingThe Tech Scene in Berlin is Booming
The Tech Scene in Berlin is Booming
 
Aligning Vectors: What Elon Musk Taught Me About Growing A Business
Aligning Vectors: What Elon Musk Taught Me About Growing A BusinessAligning Vectors: What Elon Musk Taught Me About Growing A Business
Aligning Vectors: What Elon Musk Taught Me About Growing A Business
 
15 Stats Every Marketing Leader Needs to Know
15 Stats Every Marketing Leader Needs to Know15 Stats Every Marketing Leader Needs to Know
15 Stats Every Marketing Leader Needs to Know
 
Inbound Recruiting: Hire Top Talent By Thinking Like a Marketer
Inbound Recruiting: Hire Top Talent By Thinking Like a MarketerInbound Recruiting: Hire Top Talent By Thinking Like a Marketer
Inbound Recruiting: Hire Top Talent By Thinking Like a Marketer
 
What's a Growth Stack? And why you should build one.
What's a Growth Stack? And why you should build one. What's a Growth Stack? And why you should build one.
What's a Growth Stack? And why you should build one.
 
HubSpot Diversity Data 2016
HubSpot Diversity Data 2016HubSpot Diversity Data 2016
HubSpot Diversity Data 2016
 
Add the Women Back: Wikipedia Edit-a-Thon
Add the Women Back: Wikipedia Edit-a-ThonAdd the Women Back: Wikipedia Edit-a-Thon
Add the Women Back: Wikipedia Edit-a-Thon
 
What is Inbound Recruiting?
What is Inbound Recruiting?What is Inbound Recruiting?
What is Inbound Recruiting?
 
Behind the Scenes: Launching HubSpot Tokyo
Behind the Scenes: Launching HubSpot TokyoBehind the Scenes: Launching HubSpot Tokyo
Behind the Scenes: Launching HubSpot Tokyo
 
25 Discovery Call Questions
25 Discovery Call Questions25 Discovery Call Questions
25 Discovery Call Questions
 
How to Earn the Attention of Today's Buyer
How to Earn the Attention of Today's BuyerHow to Earn the Attention of Today's Buyer
How to Earn the Attention of Today's Buyer
 
Class 1: Email Marketing Certification course: Email Marketing and Your Business
Class 1: Email Marketing Certification course: Email Marketing and Your BusinessClass 1: Email Marketing Certification course: Email Marketing and Your Business
Class 1: Email Marketing Certification course: Email Marketing and Your Business
 
Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...
Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...
Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...
 
10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot
 10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot 10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot
10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot
 
3 Proven Sales Email Templates Used by Successful Companies
3 Proven Sales Email Templates Used by Successful Companies3 Proven Sales Email Templates Used by Successful Companies
3 Proven Sales Email Templates Used by Successful Companies
 
Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...
Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...
Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...
 

Recently uploaded

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Recently uploaded (20)

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

Git 101: Git and GitHub for Beginners

  • 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 Github icon
  • 3. Install git and a create GitHub account1
  • 4. 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
  • 5. Create Github account •  www.github.com •  Free for public repositories
  • 6. 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. What is version control? •  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)
  • 9. What is git? •  Started in 2005 •  Created by Linus Torvald to aid in Linux kernel development Git icon
  • 10. What is git? •  Git isn’t the only version control system •  But (we think) it’s the best
  • 11. How does git work?3
  • 12. How does git work? •  Can be complicated at first, but there are a few key concepts •  Important git terminology in following slides are blue
  • 13. 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 •  Your snapshots from later on will stay around, too
  • 14. 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
  • 15. 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
  • 16. Key Concepts: Repositories •  Often shortened to ‘repo’ •  A collection of all the files and the history of those files •  Consists of all your commits •  Place where all your hard work is stored
  • 17. Key Concepts: Repositories •  Can live on a local machine or on a remote server (GitHub!) •  The act of copying a repository from a remote server is called cloning •  Cloning from a remote server allows teams to work together
  • 18. Key Concepts: Repositories •  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
  • 19. Key Concepts: 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
  • 20. So, what does a typical project look like? •  A bunch of commits linked together that live on some branch, contained in a repository •  Following images taken and modified from: •  http://marklodato.github.io/visual-git- guide/index-en.html •  Also a good tutorial!
  • 21. So, what does a typical project look like? Time going forward
  • 22. So, what is HEAD? Time going forward
  • 23. So, what is HEAD? •  A reference to the most recent commit Time going forward
  • 24. So, what is HEAD? Time going forward •  A reference to the most recent commit •  (in most cases – not always true!)
  • 25. So, what is MASTER? Time going forward •  The main branch in your project •  Doesn’t have to be called master, but almost always is!
  • 26. Key Concepts: Branching off of the master branch •  The start of a branch points to a specific commit •  When you want to make any changes to your project you make a new branch based on a commit
  • 27. Key Concepts: Branching off of the master branch Time going forward Images from: http://codingdomain.com/ git/merging/
  • 28. Key Concepts: Merging •  Once you’re done with your feature, you merge it back into master Time going forward
  • 29. Key Concepts: 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’ •  Staging is the new preferred term – but you can see both ‘index’ and ‘staging’ being used
  • 30. Key Concepts: How do you make a commit anyway? •  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’
  • 31. Key Concepts: How do you make a commit anyway? Time going forward
  • 32. Key Concepts: How do you make a commit anyway? Time going forward
  • 34. What is GitHub? •  www.github.com •  Largest web-based git repository hosting service •  Aka, hosts ‘remote repositories’ •  Allows for code collaboration with anyone online •  Adds extra functionality on top of git •  UI, documentation, bug tracking, feature requests, pull requests, and more! Octocat!
  • 35. What is GitHub? •  Founded in 2008 •  Also has an Enterprise edition for businesses Octocat!
  • 37. 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 •  Interactive git tutorial: https://try.github.io/levels/1/challenges/1 •  Visual/interactive cheatsheet: http://ndpsoftware.com/git-cheatsheet.html