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
Git vs SVN
Search
denkeni
March 12, 2015
Programming
310
0
Share
Git vs SVN
A Git introduction for SVN users. Including bidirectional bridge Git-Svn.
denkeni
March 12, 2015
More Decks by denkeni
See All by denkeni
Digital Identity to ZKP
denkeni
0
45
TWIGF 2025:台灣數位憑證皮夾的國際標準協定採用與國際介接現實
denkeni
0
160
有備而來:開發哲學
denkeni
0
46
探索 W3C 的開放協作模式
denkeni
0
80
台灣數位憑證皮夾:技術架構與開源挑戰
denkeni
1
160
Defensive Security
denkeni
0
63
Who Owns Your Digital Identity 誰掌握你的數位身分?
denkeni
0
140
開放文化與資安管理的邊界
denkeni
0
120
開源公益專案能賺錢嗎?
denkeni
0
480
Other Decks in Programming
See All in Programming
JOAI2026 1st solution - heron0519 -
heron0519
0
150
Server-Side Kotlin LT大会 vol.18 [Kotlin-lspの最新情報と Neovimのlsp設定例]
yasunori0418
1
190
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
160
The Monolith Strikes Back: Why AI Agents ❤️ Rails Monoliths
serradura
0
350
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
380
AIエージェントで業務改善してみた
taku271
0
540
Back to the roots of date
jinroq
0
490
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
220
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
430
AWSコミュニティ活動は顧客のクラウド推進に効くのか / Do AWS community activities help customers adopt the cloud?
seike460
PRO
0
150
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.5k
[RubyKaigi 2026] Require Hooks
palkan
1
240
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
3.1M
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
730
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Scaling GitHub
holman
464
140k
4 Signs Your Business is Dying
shpigford
187
22k
Six Lessons from altMBA
skipperchong
29
4.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
120
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.6k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
270
Agile that works and the tools we love
rasmusluckow
331
21k
Transcript
Git vs SVN @denkeni
Git - first impressions • Distributed Version Control System •
Created by Linus Torvalds for Linux kernel project management. • Fast, lightweight. • GitHub • "Local branching on the cheap"
But git is more complex and requires more management than
svn, definitely.
Git SVN git clone svn checkout git checkout xxx.m svn
revert xxx.m git checkout $branch_name svn switch $branch_url git checkout $commit svn merge -r301:300 xxx.m svn commit git reset --hard HEAD svn revert -R . git pull (= git fetch + git merge) svn update git revert $commit -
Remote-dependent(SVN) vs Local-Remote(Git)
Uncommitted (Local) Committed (Remote) svn commit
Uncommitted (Local) Committed (Remote) svn commit Working space/directory Index /
Staging area Local repository Remote repository git add xxx.m git commit git push
A typical case of SVN One trunk development
svn update (solve conflicts) svn commit trunk Remote Local
Remote Local trunk
A typical case of git Branch merging development
master Remote Local master git branch $branch_name git checkout $branch_name
Remote Local master branch git commit master
Remote Local master git checkout master branch master
Remote Local master git merge $branch_name git push branch master
(other people pushed something)
Remote Local master branch master
(Git-SVN: Use Git client for SVN remote repository) My Git-SVN
Flow
trunk master Remote Local
Remote Local master trunk branch
Remote Local master trunk git svn rebase (≈git pull) (≈svn
update) branch
Remote Local trunk branch master
Remote Local trunk master git rebase master (solve conflicts) branch
Remote Local trunk master branch
Remote Local trunk master git rebase master -i (solve conflicts)
(squash commits into one) branch
Remote Local trunk master branch
Remote Local trunk master branch git merge branch
Remote Local trunk branch master
Remote Local trunk master git svn dcommit (≈git push) branch
Remote Local trunk master branch
"A successful Git branching model." Git Flow
None
None
Learning Resources • 《Pro Git》by Scott Chacon(範例多易學,有中文版) http://git-scm.com/book/ • Try
Git: Code School(線上學 Git 指令) https://try.github.io/ • ihower 的《Git版本控制系統》 http://ihower.tw/git/ • Will 保哥的《30 天精通 Git 版本控管》(深入淺出) https://github.com/doggy8088/Learn-Git-in-30-days • GitSvnComparison https://git.wiki.kernel.org/index.php/GitSvnComparsion • Tech Talk: Linus Torvalds on git http://youtu.be/4XpnKHJAok8