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
110
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
現場で効くClaude Code ─ 最新動向と企業導入
takaakikakei
1
260
Rustから学ぶ 非同期処理の仕組み
skanehira
1
150
サラリーマンの小遣いで作るtoCサービス - Cloudflare Workersでスケールする開発戦略
shinaps
2
470
まずはマネコンでちゃちゃっと作ってから、それをCDKにしてみよか。
yamada_r
2
120
💡Ruby 川辺で灯すPicoRubyからの光
bash0c7
0
120
「何となくテストする」を卒業するためにプロダクトが動く仕組みを理解しよう
kawabeaver
0
430
「全員プロダクトマネージャー」を実現する、Cursorによる仕様検討の自動運転
applism118
22
12k
初めてAWSを使うときのセキュリティ覚書〜初心者支部編〜
cmusudakeisuke
1
280
react-callを使ってダイヤログをいろんなとこで再利用しよう!
shinaps
2
260
COVESA VSSによる車両データモデルの標準化とAWS IoT FleetWiseの活用
osawa
1
380
会社紹介資料 / Sansan Company Profile
sansan33
PRO
6
380k
要件定義・デザインフェーズでもAIを活用して、コミュニケーションの密度を高める
kazukihayase
0
120
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
How to Think Like a Performance Engineer
csswizardry
26
1.9k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Code Reviewing Like a Champion
maltzj
525
40k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
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?