Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Git vs SVN

denkeni
March 12, 2015

Git vs SVN

A Git introduction for SVN users. Including bidirectional bridge Git-Svn.

denkeni

March 12, 2015
Tweet

More Decks by denkeni

Other Decks in Programming

Transcript

  1. Git - first impressions • Distributed Version Control System •

    Created by Linus Torvalds for Linux kernel project management. • Fast, lightweight. • GitHub • "Local branching on the cheap"
  2. 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 -
  3. Uncommitted (Local) Committed (Remote) svn commit Working space/directory Index /

    Staging area Local repository Remote repository git add xxx.m git commit git push
  4. 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