SlideShare a Scribd company logo
Git
Overview
• What is Git?
• Basic workflow
• Demo
• Tips
• Resources
What is Git?
• Distributed revision control
• Stores snapshots of files
• Everything is local
CVS, Subversion, Perforce
Deltas
Git
Snapshots
Key differences
• Everything is Local
• Fast
• Works offline
• Cheap branching
Terms
• commit - group of saved modifications
• remote - object which exists in a remote
repository
• stash - unit of uncommitted changes
• tags - pointer to a specific commit in a specific
branch
• can mark versions / milestones
Terms
• push - upload changes made on the local
repository to a remote repo / branch
• pull - download changes from a remote repo /
branch to a local branch
Common Actions
• Check status
• Add changes to staging area
• Stash changes
• Commit staged changes
• Push commits
Working with branches
• Create a branch
• Checkout another branch
• Merge branches
Merging vs Rebase
• Merge - maintains commit history
• Rebase - squashes many commits into 1
Basic Workflow
• Make some changes
• Stage changes
• Commit changes
• Push to remote (optional)
Introduction to Git
Well, actually…
1. Create / Clone / Merge
2. Create new feature / issue branch
3. Make some changes
4. Stage & commit changes
5. Go back to 3
6. Submit for code review / Merge / Push
7. Go to 1
Demo
Why?
• Collaboration
• Backup
• Experimentation (branches)
• Recover from mistakes
• Cross reference
Do
• Use Git
• Branch often
• git checkout -b _issue##_
• Use .gitignore
Don’t
• Commit binaries!
• Commit commented code
• use a branch or a stash
Resources
• Github.gitignore files
• Git Cheat Sheet
• GUI
• SourceTree, GitHub, Tower, etc.
Learn More
• Interactive tutorial
• Pro Git ebook
• Introduction to Git with Scott Chacon of GitHub
Questions?
Thomas Bennett
thomas.bennett@technicolor.com

More Related Content

PDF
Introduction to Git
PDF
Embracing Git and Distributed Teams
PPTX
Git basic
PDF
Streams in Parallel Development by Sven Erik Knop
PDF
Introduction to git
PPTX
The Art and Zen of Managing Nagios With Puppet
Introduction to Git
Embracing Git and Distributed Teams
Git basic
Streams in Parallel Development by Sven Erik Knop
Introduction to git
The Art and Zen of Managing Nagios With Puppet

What's hot (19)

PDF
DevOpsDays Houston 2019 - Shaun Ladewig, Robert Stone - From OverTheWallOps t...
PPTX
Introduction To Git
PPTX
The Art & Zen of Managing Nagios with Puppet
PDF
Git - An Introduction
PDF
Real world microservice architecture
PDF
Semantic versioning and microservices in GO
PPTX
Source Control Using Git
PPTX
Scripting
PDF
Git at an Enterprise
PPTX
CI/CD with Bitbucket pipelines
PDF
Salt Air 19 - Intro to SaltStack RAET (reliable asyncronous event transport)
PDF
Release This! - Tools for a Smooth Release Cycle
PPTX
Continuous Deployment into the Unknown with Artifactory, Bintray, Docker and ...
PPTX
JavaEdge 2008: Your next version control system
PDF
Git hub for designers
PPTX
Bitbucket pipelines
ZIP
Koha 3.2 Status
PDF
Governance beyond ESB
ODP
Git presentation
DevOpsDays Houston 2019 - Shaun Ladewig, Robert Stone - From OverTheWallOps t...
Introduction To Git
The Art & Zen of Managing Nagios with Puppet
Git - An Introduction
Real world microservice architecture
Semantic versioning and microservices in GO
Source Control Using Git
Scripting
Git at an Enterprise
CI/CD with Bitbucket pipelines
Salt Air 19 - Intro to SaltStack RAET (reliable asyncronous event transport)
Release This! - Tools for a Smooth Release Cycle
Continuous Deployment into the Unknown with Artifactory, Bintray, Docker and ...
JavaEdge 2008: Your next version control system
Git hub for designers
Bitbucket pipelines
Koha 3.2 Status
Governance beyond ESB
Git presentation
Ad

Viewers also liked (20)

PDF
Learning Git
PPTX
Valora ci on jugando, calculando y navegando
PPTX
Palestine's children victims of zionists
PDF
El juego
DOCX
Cuentos tercero 2014
PDF
Plan de clase matematicas
PDF
Introducing the Organizational Analytics
PPT
Bullying
PPS
O silencio da alma
PPS
Presentacion maría teresa lepeley (3)
PDF
Lista 29 moderna
PDF
Ata1507acompanhamento
PDF
Colorado water law
PDF
Plan de clase matematicas
PPTX
Historia de un colegio valle de santiago 2014 v1.00
PPTX
Combined heat and_power_
PDF
Propuesta para la introducción de literales
PPTX
T1 a1 conferencia los estilos de aprendizaje
PPSX
Curriculum Presentation
ODP
Momentos de la Clase - Eliezer Rubin
Learning Git
Valora ci on jugando, calculando y navegando
Palestine's children victims of zionists
El juego
Cuentos tercero 2014
Plan de clase matematicas
Introducing the Organizational Analytics
Bullying
O silencio da alma
Presentacion maría teresa lepeley (3)
Lista 29 moderna
Ata1507acompanhamento
Colorado water law
Plan de clase matematicas
Historia de un colegio valle de santiago 2014 v1.00
Combined heat and_power_
Propuesta para la introducción de literales
T1 a1 conferencia los estilos de aprendizaje
Curriculum Presentation
Momentos de la Clase - Eliezer Rubin
Ad

Similar to Introduction to Git (20)

PPTX
01 - Git vs SVN
PPTX
Git and Github
PPTX
Git and github
PDF
PPTX
Git more done
PPTX
Intro to Git and Github
PPTX
Git Basics for Software Version Management
PPTX
Lets Git Together
PPTX
GIT.pptx
PPTX
PPT
Git installation and configuration
PPT
Git presentation
PPTX
Learn Git form Beginners to Master
PPTX
GIT In Detail
PPTX
Git.pptx
PPTX
git.ppt.pptx power point presentation got Google internet
PPTX
Git 101
PPTX
01 - Git vs SVN
Git and Github
Git and github
Git more done
Intro to Git and Github
Git Basics for Software Version Management
Lets Git Together
GIT.pptx
Git installation and configuration
Git presentation
Learn Git form Beginners to Master
GIT In Detail
Git.pptx
git.ppt.pptx power point presentation got Google internet
Git 101

Recently uploaded (20)

PDF
Digital Strategies for Manufacturing Companies
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
history of c programming in notes for students .pptx
PDF
top salesforce developer skills in 2025.pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
System and Network Administration Chapter 2
PDF
System and Network Administraation Chapter 3
PDF
AI in Product Development-omnex systems
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
medical staffing services at VALiNTRY
Digital Strategies for Manufacturing Companies
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
history of c programming in notes for students .pptx
top salesforce developer skills in 2025.pdf
Softaken Excel to vCard Converter Software.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
ai tools demonstartion for schools and inter college
Adobe Illustrator 28.6 Crack My Vision of Vector Design
VVF-Customer-Presentation2025-Ver1.9.pptx
System and Network Administration Chapter 2
System and Network Administraation Chapter 3
AI in Product Development-omnex systems
Upgrade and Innovation Strategies for SAP ERP Customers
Design an Analysis of Algorithms II-SECS-1021-03
Odoo POS Development Services by CandidRoot Solutions
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Odoo Companies in India – Driving Business Transformation.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Reimagine Home Health with the Power of Agentic AI​
medical staffing services at VALiNTRY

Introduction to Git