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
190
Golang Notes
tevino
1
120
Other Decks in Technology
See All in Technology
“パスワードレス認証への道" ユーザー認証の変遷とパスキーの関係
ritou
1
270
大規模サービスにおける カスケード障害
takumiogawa
3
790
Devinで模索する AIファースト開発〜ゼロベースから始めるDevOpsの進化〜
potix2
PRO
5
2.4k
Micro Frontends: Necessity, Implementation, and Challenges
rainerhahnekamp
0
320
「家族アルバム みてね」を支えるS3ライフサイクル戦略
fanglang
4
650
「それはhowなんよ〜」のガイドライン #orestudy
77web
9
2.4k
Re:VIEWで書いた「Compose で Android の edge-to-edge に対応する」をRoo Codeで発表資料にしてもらった
tomoya0x00
0
260
10分でわかるfreeeのQA
freee
1
12k
古き良き Laravel のシステムは関数型スタイルでリファクタできるのか
leveragestech
1
630
自分の軸足を見つけろ
tsuemura
2
570
JPOUG Tech Talk #12 UNDO Tablespace Reintroduction
nori_shinoda
1
110
AIエージェント開発における「攻めの品質改善」と「守りの品質保証」 / 2024.04.09 GPU UNITE 新年会 2025
smiyawaki0820
0
390
Featured
See All Featured
BBQ
matthewcrist
88
9.6k
Fireside Chat
paigeccino
37
3.4k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Building Flexible Design Systems
yeseniaperezcruz
329
38k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
41
2.2k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
KATA
mclloyd
29
14k
Navigating Team Friction
lara
184
15k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.1k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Docker and Python
trallard
44
3.3k
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?