$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Version Control - Git
Search
MarsW
August 05, 2014
Technology
0
100
Version Control - Git
MarsW
August 05, 2014
Tweet
Share
More Decks by MarsW
See All by MarsW
Data Engineering Workshop
marsw
0
62
交大資工-新資訊時代的女力關鍵
marsw
0
300
I2TRC2_2015
marsw
0
210
NOL技術學習-PythonII
marsw
0
110
NOL技術學習-PythonI
marsw
0
89
I2TRC2_2014
marsw
0
66
I2TRC2_2013
marsw
0
67
I2TRC2_2012
marsw
0
50
I2TRC2_2011
marsw
0
110
Other Decks in Technology
See All in Technology
Security Diaries of an Open Source IAM
ahus1
0
120
私も懇親会は苦手でした ~苦手だからこそ懇親会を楽しむ方法~ / 20251127 Masaki Okuda
shift_evolve
PRO
4
560
あなたの知らないDateのひみつ / The Secret of "Date" You Haven't known #tqrk16
expajp
0
110
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
37k
Playwrightのソースコードに見る、自動テストを自動で書く技術
yusukeiwaki
9
3.1k
eBPFとwaruiBPF
sat
PRO
4
1.8k
安いGPUレンタルサービスについて
aratako
2
2.3k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
9.9k
原理から解き明かす AIと人間の成長 - Progate BAR
teba_eleven
2
300
AIにおける自由の追求
shujisado
3
470
世界最速級 memcached 互換サーバー作った
yasukata
0
160
Oracle Cloud Infrastructure:2025年11月度サービス・アップデート
oracle4engineer
PRO
1
120
Featured
See All Featured
Optimizing for Happiness
mojombo
379
70k
Thoughts on Productivity
jonyablonski
73
5k
The Cult of Friendly URLs
andyhume
79
6.7k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
700
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
Rails Girls Zürich Keynote
gr2m
95
14k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Being A Developer After 40
akosma
91
590k
Speed Design
sergeychernyshev
33
1.4k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Transcript
Git MarsW
C o m pu ter C en ter , C
S, N C T U 2 甚麼是版本控制? 能吃嗎? ! ! 在講版本控制以前, 對以下情況應該會有種似曾相識的感覺
C o m pu ter C en ter , C
S, N C T U 3 貫徹始終 ❑ xx_hwk4.c //20131026
C o m pu ter C en ter , C
S, N C T U 4 貫徹始終 ❑ xx_hwk4.c //20131026 ❑ xx_hwk4.c //20131027
C o m pu ter C en ter , C
S, N C T U 5 貫徹始終 ❑ xx_hwk4.c //20131026 ❑ xx_hwk4.c //20131027 . . . ❑ xx_hwk4.c //20131127
C o m pu ter C en ter , C
S, N C T U 6 貫徹始終 ❑ xx_hwk4.c //20131026 ❑ xx_hwk4.c //20131027 . . . ❑ xx_hwk4.c //20131127 啊…改壞了,上個還可以work的版本…
C o m pu ter C en ter , C
S, N C T U 7 貫徹始終 ❑ xx_hwk4.c //20131026 ❑ xx_hwk4.c //20131027 . . . ❑ xx_hwk4.c //20131127 啊…改壞了,上個還可以work的版本…
C o m pu ter C en ter , C
S, N C T U 8 你是這樣命名的嗎? ❑ xx_hwk4.c(1)
C o m pu ter C en ter , C
S, N C T U 9 你是這樣命名的嗎? ❑ xx_hwk4.c(1) ❑ xx_hwk4.c(2)
C o m pu ter C en ter , C
S, N C T U 10 你是這樣命名的嗎? ❑ xx_hwk4.c(1) ❑ xx_hwk4.c(2) . . . ❑ xx_hwk4.c(最終版)
C o m pu ter C en ter , C
S, N C T U 11 你是這樣命名的嗎? ❑ xx_hwk4.c(1) ❑ xx_hwk4.c(2) . . . ❑ xx_hwk4.c(最終版) ❑ xx_hwk4.c(這才是最終版)
C o m pu ter C en ter , C
S, N C T U 12 你是這樣命名的嗎? ❑ xx_hwk4.c(1) ❑ xx_hwk4.c(2) . . . ❑ xx_hwk4.c(最終版) ❑ xx_hwk4.c(這才是最終版) ❑ xx_hwk4.c(最終的最終版)
C o m pu ter C en ter , C
S, N C T U 13 你是這樣命名的嗎? ❑ xx_hwk4.c(1) ❑ xx_hwk4.c(2) . . . ❑ xx_hwk4.c(最終版) ❑ xx_hwk4.c(這才是最終版) ❑ xx_hwk4.c(最終的最終版) ❑ xx_hwk4.c(最最最最終版)
C o m pu ter C en ter , C
S, N C T U 14 你是這樣命名的嗎? ❑ xx_hwk4.c(1) ❑ xx_hwk4.c(2) . . . ❑ xx_hwk4.c(最終版) ❑ xx_hwk4.c(這才是最終版) ❑ xx_hwk4.c(最終的最終版) ❑ xx_hwk4.c(最最最最終版) ❑ xx_hwk4.c(不要懷疑 交這個就對了)
C o m pu ter C en ter , C
S, N C T U 15 你是這樣命名的嗎? ❑ xx_hwk4.c(1) ❑ xx_hwk4.c(2) . . . ❑ xx_hwk4.c(最終版) ❑ xx_hwk4.c(這才是最終版) ❑ xx_hwk4.c(最終的最終版) ❑ xx_hwk4.c(最最最最終版) ❑ xx_hwk4.c(不要懷疑 交這個就對了)
C o m pu ter C en ter , C
S, N C T U 16 還是這樣? ❑ xx_hwk4_20131126_v1.c ❑ xx_hwk4_20131127_v2.c . . . v1 …… ! v2 …… README
C o m pu ter C en ter , C
S, N C T U 17 如果有很多⼈人⼀一起合作… ❑ AAA_xx_hwk4_20131126_v1.c ❑ BBB_xx_hwk4_20131127_v2.c . . .
C o m pu ter C en ter , C
S, N C T U 18 我在改 XXYY 功能,不要動!!!
C o m pu ter C en ter , C
S, N C T U 19 我在改 XXYY 功能,不要動!!!
C o m pu ter C en ter , C
S, N C T U 20 我在改 XXYY 功能,不要動!!!
C o m pu ter C en ter , C
S, N C T U 21 跟別⼈人合併就是悲劇的開始 ❑ 我在我的電腦可以跑的阿! ❑ 昨天還好好的! ❑ 你⼀一定弄錯版本了! ❑ 這BUG我修了阿! ❑ 你到底做了甚麼才讓程式出錯?
C o m pu ter C en ter , C
S, N C T U 22 版本控制 就像遊戲存檔⼀一樣,打不贏boss、忘了拿寶,! 可以回到前⾯面的存檔重練。! ❑ 良好的開發歷程記錄! ❑ 統⼀一管制、衝突管理! ❑ ⾃自動化應⽤用
C o m pu ter C en ter , C
S, N C T U 23 版本控制 ❑ Local Version Control
C o m pu ter C en ter , C
S, N C T U 24 版本控制 ❑ Centralized Version Control • SVN
C o m pu ter C en ter , C
S, N C T U 25 版本控制 ❑ Centralized Version Control • SVN
C o m pu ter C en ter , C
S, N C T U 26 版本控制 ❑ Distributed Version Control • Git
C o m pu ter C en ter , C
S, N C T U 27 Git ❑ Setup • git clone 1. Update • git pull 2. Coding • git status • git add • git commit 3. Push • git push ! ❑ http://try.github.io/levels/1/challenges/1 Local Remote git status
C o m pu ter C en ter , C
S, N C T U 28 Other Services ❑ Github ❑ Bitbucket
C o m pu ter C en ter , C
S, N C T U 29 References ❑ http://tech.marsw.tw/blog/2013/08/16/git-notes-github ! ❑ learnGitBranching http://pcottle.github.io/learnGitBranching