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
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Version Control - Git
MarsW
August 05, 2014
More Decks by MarsW
See All by MarsW
Data Engineering Workshop
marsw
0
120
交大資工-新資訊時代的女力關鍵
marsw
0
330
I2TRC2_2015
marsw
0
230
NOL技術學習-PythonII
marsw
0
120
NOL技術學習-PythonI
marsw
0
93
I2TRC2_2014
marsw
0
87
I2TRC2_2013
marsw
0
79
I2TRC2_2012
marsw
0
60
I2TRC2_2011
marsw
0
130
Other Decks in Technology
See All in Technology
『三匹の子ぶた』から学ぶネットワークセキュリティの昔と今 / Network Security: Then and Now Through the Lens of The Three Little Pigs
nttcom
1
1.8k
【CEDEC2026】専門性の高いデフォルメチームが挑んだ人材育成戦略 〜Cygames Academiaの企画から実施まで〜
cygames
PRO
0
530
変化の早いClaude Codeを 書籍に落とし込む
oikon48
7
1.3k
組織にどうSREを根付かせるか?〜IVRyの場合〜
abnoumaru
0
330
ガバメント AI 源内を地方自治体は活用できるのか可能性と課題、期待について
takeda_h
1
350
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
1.5k
認知負荷をGemini で溶かす — GKE 基盤「Orbit」における AI エージェントの実践
sansantech
PRO
1
270
QAエンジニア起点で進める、SmartHRにおける信頼性向上について
kaomi_wombat
1
120
【CEDEC2026】グラフィックスエンジニアのためのニューラルシェーディング入門
cygames
PRO
0
120
ガバメントクラウドでのランサムウェア対策
techniczna
2
990
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
210
修正PRを食べてレビュースキルが賢くなる:Claude Codeによる自己改善サイクル
yuyaumetsu
5
1.4k
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
55
8.3k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
What's in a price? How to price your products and services
michaelherold
247
13k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
290
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Designing for humans not robots
tammielis
254
26k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
330
Joys of Absence: A Defence of Solitary Play
codingconduct
1
430
Skip the Path - Find Your Career Trail
mkilby
1
180
Crafting Experiences
bethany
1
240
Facilitating Awesome Meetings
lara
57
7.1k
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