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
15
510
Git Basics
James Hughes
June 22, 2012
Tweet
Share
More Decks by James Hughes
See All by James Hughes
Functional Programming with Clojure
kouphax
1
150
Tyrannosaurus Rx
kouphax
0
130
React
kouphax
2
740
Play for (Java|Scala)
kouphax
0
140
Devops: A Case Study
kouphax
0
94
Scala for C# Developers
kouphax
5
2.7k
Dropwizard - Production Ready Web Services
kouphax
3
1.6k
Scala for Fun & Profit
kouphax
4
650
What Agile Means To Me
kouphax
0
160
Other Decks in Programming
See All in Programming
AIに任せる範囲を安全に広げるためにやっていること
fukucheee
0
120
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
330
AWS Infrastructure as Code の新機能 2025 総まとめ 〜SA 4人による怒涛のデモ祭り〜
konokenj
10
3.3k
Claude Code、ちょっとした工夫で開発体験が変わる
tigertora7571
0
200
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
230
15年目のiOSアプリを1から作り直す技術
teakun
1
610
Geminiの機能を調べ尽くしてみた
naruyoshimi
0
200
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
200
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
440
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
7.8k
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
410
atmaCup #23でAIコーディングを活用した話
ml_bear
4
750
Featured
See All Featured
Ethics towards AI in product and experience design
skipperchong
2
220
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
820
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
190
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.5k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
150
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
150
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
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