Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Git vs SVN
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
denkeni
March 12, 2015
Programming
380
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git vs SVN
A Git introduction for SVN users. Including bidirectional bridge Git-Svn.
denkeni
March 12, 2015
Transcript
33 slides
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
More Decks by denkeni
See All by denkeni
Age Assurance Frameworks, and Digital Identity Wallet
denkeni
0
74
Digital Identity to ZKP
denkeni
0
140
TWIGF 2025:台灣數位憑證皮夾的國際標準協定採用與國際介接現實
denkeni
0
220
有備而來:開發哲學
denkeni
0
120
探索 W3C 的開放協作模式
denkeni
0
150
台灣數位憑證皮夾:技術架構與開源挑戰
denkeni
1
280
Defensive Security
denkeni
0
91
Who Owns Your Digital Identity 誰掌握你的數位身分?
denkeni
0
220
開放文化與資安管理的邊界
denkeni
0
180
Other Decks in Programming
See All in Programming
vue-tsc x TypeScript7
koukimiura
0
110
Apache Airflow Introduction
leew
1
100
R言語プログラミング
profjoesuzuki
0
130
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
410
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
6.4k
あなたはMCPの機能を、まだ知らない。
4geru
1
750
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
280
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
140
Kiro Crewによる開発体験ーKiro CrewでStrands Decider 2B に関する技術検証をやってみた
satoshi256kbyte
1
230
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
3
1.2k
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
160
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7.1k
GraphQLとの向き合い方2022年版
quramy
50
15k
How to build a perfect <img>
jonoalderson
1
6.3k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.5k
Six Lessons from altMBA
skipperchong
29
4.6k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
580
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Exploring anti-patterns in Rails
aemeredith
4
590
Google's AI Overviews - The New Search
badams
0
1.7k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
ラッコキーワード サービス紹介資料
rakko
5
6.1M
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k