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 (20)

GIT presentation
GIT presentationGIT presentation
GIT presentation
 
Git training v10
Git training v10Git training v10
Git training v10
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
Git real slides
Git real slidesGit real slides
Git real slides
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
Git basic
Git basicGit basic
Git basic
 
Git basics
Git basicsGit basics
Git basics
 
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
 
Learning git
Learning gitLearning git
Learning git
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
 
Github basics
Github basicsGithub basics
Github basics
 
Git branching strategies
Git branching strategiesGit branching strategies
Git branching strategies
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
git and github
git and githubgit and github
git and github
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Git commands
Git commandsGit commands
Git commands
 
BitBucket presentation
BitBucket presentationBitBucket presentation
BitBucket presentation
 

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
 
Git best practices workshop
Git best practices workshopGit best practices workshop
Git best practices workshop
 
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
 

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
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitRobert Lee-Cann
 

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
 
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
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to 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

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringJuanCarlosMorales19600
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 

Recently uploaded (20)

young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineering
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 

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