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
92
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
100
Other Decks in Technology
See All in Technology
任意コード実行の原理
ffri
0
170
マイクロサービス環境におけるDB戦略 in DMMプラットフォーム
pospome
11
3k
ハイパフォーマンスな組織をつくるための開発生産性の考え方 / developer-productivity-high-performer-link-and-motivation
lmi
3
250
これまでのキャリアとこれからMLエンジニアとしてどう動くか
masatakashiwagi
0
290
現実世界の事象から学ぶSOLID原則
h0r15h0
24
10k
統計的学習理論読み Chapter 1
kmatsui
3
760
XRミーティング 2024-03-20
1ftseabass
PRO
0
100
家族アルバム みてねで直面してきた技術的負債 / MIXI KAG 2024
isaoshimizu
17
7.7k
既存プロセスからの脱却と変化に適応するために必要なこと
cybozuinsideout
PRO
2
170
期待しすぎずに取り組む両面 TypeScript
shozawa
2
290
Tohoku.Tech #1 「EC-CUBE/AWSの構築をChatGPTに相談してみました」by テンダ
jun2882
0
140
2023 Japan AWS Jr.Championsに選出されての振り返りとこれから
hiropy877
1
130
Featured
See All Featured
Fontdeck: Realign not Redesign
paulrobertlloyd
75
4.8k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.2k
Building Flexible Design Systems
yeseniaperezcruz
317
37k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
101
6.6k
Pencils Down: Stop Designing & Start Developing
hursman
115
11k
Practical Orchestrator
shlominoach
180
9.7k
Raft: Consensus for Rubyists
vanstee
130
6.2k
Art, The Web, and Tiny UX
lynnandtonic
288
19k
Music & Morning Musume
bryan
39
5.5k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
8
8.2k
How To Stay Up To Date on Web Technology
chriscoyier
781
250k
For a Future-Friendly Web
brad_frost
170
8.9k
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?