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
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Git training v10
Git training v10Git training v10
Git training v10
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
GitHub Presentation
GitHub PresentationGitHub Presentation
GitHub Presentation
 
Introduction to Git Commands and Concepts
Introduction to Git Commands and ConceptsIntroduction to Git Commands and Concepts
Introduction to Git Commands and Concepts
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
 
Github basics
Github basicsGithub basics
Github basics
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 
Git flow
Git flowGit flow
Git flow
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Git commands
Git commandsGit commands
Git commands
 
Git
GitGit
Git
 
Advanced Git
Advanced GitAdvanced Git
Advanced Git
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 

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
 

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

(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
(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
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
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
 
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-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
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
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
 
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
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 

Recently uploaded (20)

(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
(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...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
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...
 
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-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
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.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
 
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...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 

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