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
Yet another introduction to git
Search
Tevin Zhang
March 10, 2015
Technology
0
100
Yet another introduction to git
Really junior introduction to git, with demonstrations.
Tevin Zhang
March 10, 2015
Tweet
Share
More Decks by Tevin Zhang
See All by Tevin Zhang
Switching from HAProxy to Samaritan
tevino
2
200
Golang Notes
tevino
1
120
Other Decks in Technology
See All in Technology
新卒3年目の後悔〜機械学習モデルジョブの運用を頑張った話〜
kameitomohiro
0
390
データプラットフォーム技術におけるメダリオンアーキテクチャという考え方/DataPlatformWithMedallionArchitecture
smdmts
5
570
Agentic DevOps時代の生存戦略
kkamegawa
0
1k
プロダクトエンジニアリング組織への歩み、その現在地 / Our journey to becoming a product engineering organization
hiro_torii
0
110
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
100
Claude Code Actionを使ったコード品質改善の取り組み
potix2
PRO
4
1.7k
Oracle Cloud Infrastructure:2025年6月度サービス・アップデート
oracle4engineer
PRO
2
140
初めてのAzure FunctionsをClaude Codeで作ってみた / My first Azure Functions using Claude Code
hideakiaoyagi
1
190
【TiDB GAME DAY 2025】Shadowverse: Worlds Beyond にみる TiDB 活用術
cygames
0
890
AIにどこまで任せる?実務で使える(かもしれない)AIエージェント設計の考え方
har1101
3
1.3k
Observability infrastructure behind the trillion-messages scale Kafka platform
lycorptech_jp
PRO
0
130
IIWレポートからみるID業界で話題のMCP
fujie
0
740
Featured
See All Featured
How to Ace a Technical Interview
jacobian
277
23k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.8k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
KATA
mclloyd
29
14k
Code Review Best Practice
trishagee
68
18k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
A designer walks into a library…
pauljervisheath
206
24k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Transcript
Yet Another Introduction to git Tevin Zhang
Agenda • Features • Staging Area • File Status Life
Cycle • Basic operation • Tips
Features • Small and Fast • Branching and Merging •
Distributed • Staging Area http://git-scm.com/about
Staging area Working directory Repository
Staging area Working directory Repository Commit changes
Staging area Working directory Staging area Repository Commit changes
Staging area Working directory Staging area Repository Commit changes Stage
Staging area Working directory Staging area Repository Commit changes Stage
Commit
File Status Life Cycle Untracked
File Status Life Cycle Untracked Staged
File Status Life Cycle Committed Untracked Staged
File Status Life Cycle Committed Untracked Modified Staged
File Status Life Cycle Committed Untracked Modified Staged
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit Untracked or Modified
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit Untracked or Modified Staged
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit Untracked or Modified Staged git add
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit Untracked or Modified Staged Committed git add
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit Untracked or Modified Staged Committed git add git commit
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit Untracked or Modified Staged Committed git add git commit git commit -a
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit Untracked or Modified Staged Committed git add git commit git commit -a Revert changes
File Status Life Cycle Working directory Staging area Repository Commit
changes Stage Commit Untracked or Modified Staged Committed git add git commit git commit -a Revert changes git checkout —- <filename>
Basic Operation • git init • git clone • git
status
• git add • git commit • git log •
git diff Basic Operation
Branching • git checkout • git branch • git merge
Sync • git pull • git push • git remote
Tips • git config --global color.ui true • alias for
git log • git stash
Questions?