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
Version Control - Git
Search
MarsW
August 05, 2014
Technology
0
96
Version Control - Git
MarsW
August 05, 2014
Tweet
Share
More Decks by MarsW
See All by MarsW
Data Engineering Workshop
marsw
0
52
交大資工-新資訊時代的女力關鍵
marsw
0
280
I2TRC2_2015
marsw
0
190
NOL技術學習-PythonII
marsw
0
100
NOL技術學習-PythonI
marsw
0
84
I2TRC2_2014
marsw
0
60
I2TRC2_2013
marsw
0
64
I2TRC2_2012
marsw
0
47
I2TRC2_2011
marsw
0
110
Other Decks in Technology
See All in Technology
システムとの会話から生まれる先手のDevOps
kakehashi
PRO
0
270
サーバレス、コンテナ、データベース特化型機能をご紹介。CloudWatch をもっと使いこなそう!
o11yfes2023
0
160
更新系と状態
uhyo
5
1.1k
4/17/25 - CIJUG - Java Meets AI: Build LLM-Powered Apps with LangChain4j (part 2)
edeandrea
PRO
0
100
Would you THINK such a demonstration interesting ?
shumpei3
1
220
フロントエンドも盛り上げたい!フロントエンドCBとAmplifyの軌跡
mkdev10
2
270
開発視点でAWS Signerを考えてみよう!! ~コード署名のその先へ~
masakiokuda
3
160
The Tale of Leo: Brave Lion and Curious Little Bug
canalun
1
120
新卒エンジニアがCICDをモダナイズしてみた話
akashi_sn
2
210
AIで進化するソフトウェアテスト:mablの最新生成AI機能でQAを加速!
mfunaki
0
140
AWS Control Towerを 数年運用してきての気づきとこれから/aws-controltower-ops-tips
tadayukinakamura
0
140
LLM とプロンプトエンジニアリング/チューターをビルドする / LLM, Prompt Engineering and Building Tutors
ks91
PRO
1
250
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
430
65k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
GitHub's CSS Performance
jonrohan
1030
460k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
135
33k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
30k
Build The Right Thing And Hit Your Dates
maggiecrowley
35
2.6k
Product Roadmaps are Hard
iamctodd
PRO
52
11k
Music & Morning Musume
bryan
47
6.5k
Code Reviewing Like a Champion
maltzj
522
40k
Facilitating Awesome Meetings
lara
54
6.3k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
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