Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git Basics
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
James Hughes
June 22, 2012
Programming
520
15
Share
Git Basics
James Hughes
June 22, 2012
More Decks by James Hughes
See All by James Hughes
Functional Programming with Clojure
kouphax
1
150
Tyrannosaurus Rx
kouphax
0
140
React
kouphax
2
750
Play for (Java|Scala)
kouphax
0
150
Devops: A Case Study
kouphax
0
100
Scala for C# Developers
kouphax
5
2.7k
Dropwizard - Production Ready Web Services
kouphax
3
1.7k
Scala for Fun & Profit
kouphax
4
660
What Agile Means To Me
kouphax
0
170
Other Decks in Programming
See All in Programming
Claspは野良GASの夢をみるか
takter00
0
120
GitHub Copilot CLIのいいところ
htkym
2
1.1k
Transactional Change Stream Processing With Debezium and Apache Flink
gunnarmorling
1
130
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
340
Copilot CLI の継戦能力を高める コンテキスト管理
nozomutu
1
1k
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
2.2k
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
400
Skillは並べた。動かなかった。契約で繋いだ。— 65個のSkillから、自走する開発サイクルへ
junholee
0
760
Inside Stream API
skrb
1
210
Sans tests, vos agents ne sont pas fiables
nabondance
0
160
AIエージェントの隔離技術の徹底比較
kawayu
0
430
New "Type" system on PicoRuby
pocke
1
190
Featured
See All Featured
Everyday Curiosity
cassininazir
0
210
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.3k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
710
How to make the Groovebox
asonas
2
2.2k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
340
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
220
Measuring & Analyzing Core Web Vitals
bluesmoon
9
830
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
WCS-LA-2024
lcolladotor
0
600
The Cult of Friendly URLs
andyhume
79
6.9k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Transcript
Git Basics
version control noun Computing the task of keeping a software
system consisting of many versions and configurations well organised.
Centralised (e.g. Subversion)
1 source of truth 1 point of failure
Distributed (e.g. Git, Mercurial)
No 1 source of truth No 1 point of failure
Commands (for day-to-day activities)
init clone add commit remote push stash revert log branch
checkout merge
Staging (the fundamental git concept)
working directory staging area/index repository add commit
Helping Hands (log, diff & status)
log diff status Show commit logs Show changes between commits
Show the working tree status
.gitignore (excluding files you don’t need)
.gitignore bin/ obj/ *.tmp
Workflows (super simple, happy path git usage)
Create or copy a repo Committing code Pulling code Pushing
code Feature branches Backing out changes
init/clone add commit push Super Simple Git Workflow For the
lone wolf
Super Simple Team Workflow For the hyper agile team init/clone
add/commit pull push
stash push add commit init/clone pull stash apply Team Workflow
Pulling mid-commit
Feature Branches Short Lived, Isolated Sandboxes add/commit branch push checkout
merge checkout init/clone
Undoing Changes (checkout, reset & revert)
checkout <file> reset HEAD <file> revert HEAD Revert uncommitted changes
Revert staged changes Revert committed changes
/Git Basics