SlideShare a Scribd company logo
1 of 11
from svn to git
checkout svn; commit git
svn = remote
git = local
While with svn,
everything routes
through the remote
repository, git
introduces the notion of
a “local” repository
Image from http://techidiocy.com/understand-git-clone-command-svn-checkout-vs-git-
clone/
svn = URL => <root>
git = URL => repository
Branching/tagging are
an inherent part of git
trunk => master
Image from http://www.mactech.com/articles/mactech/Vol.22/22.11/2211XCode/index.html
svn = files
git = changesets
Image from https://jazz.net/forum/questions/133603/how-to-create-remote-change-setswith-external-
link
With svn, you commit
whole files. svn
diff is a diff of the
two versions of a file.
With git, the diff IS
what you commit.
cloning & pulling
To pull down a project
from the remote repo:
git clone <repo_URL>
Then update with:
git pull
vs.
git fetch/merge
Remote
Repository
Local
Repository
Working
Directory
git fetch
git merge
git pull
committing
Be sure to:
git config --global user.name "Your Name Comes Here"
git config --global user.email you@yourdomain.example.com
Then:
git add .
git commit -m "A descriptive and useful message."
pushing
To push to the existing
remote origin:
git push
To create a new remote
origin:
git push -u origin
<branch_name>
Remote
Repository
Local
Repository
Working
Directory
git push
git commit
branching/tagging
To branch:
git branch <branch_name>
git checkout <branch_name>
OR
git checkout -b <branch_name>
To Tag:
git tag -a <tag>
Image from http://nvie.com/posts/a-successful-git-branching-model/
merging/rebasing
To merge from a
branch:
git merge <branch>
To rebase from a
branch:
git rebase <branch>
Image from http://codingdomain.com/git/rebase/
pull requests
Image from https://www.atlassian.com/git/workflows#!pull-
request
references & learning
Git Basics
http://git-scm.com/book/en/Getting-Started-Git-Basics
Git - SVN Crash Course
http://git-scm.com/course/svn.html
Code School - Try Git
https://try.github.io
Learn Branching
http://pcottle.github.io/learnGitBranching/

More Related Content

What's hot

Svn vs mercurial vs github
Svn  vs  mercurial vs  githubSvn  vs  mercurial vs  github
Svn vs mercurial vs github
Vinoth Kannan
 

What's hot (20)

Git
GitGit
Git
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
Version Control Systems with git (and github) as an example
Version Control Systems with git (and github) as an exampleVersion Control Systems with git (and github) as an example
Version Control Systems with git (and github) as an example
 
Git vs Subversion: ¿Cuando elegir uno u otro?
Git vs Subversion: ¿Cuando elegir uno u otro?Git vs Subversion: ¿Cuando elegir uno u otro?
Git vs Subversion: ¿Cuando elegir uno u otro?
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
 
Git learning
Git learningGit learning
Git learning
 
SVN 2 Git
SVN 2 GitSVN 2 Git
SVN 2 Git
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
 
Version Control System - Git
Version Control System - GitVersion Control System - Git
Version Control System - Git
 
Gitting out of trouble
Gitting out of troubleGitting out of trouble
Gitting out of trouble
 
Version Control & Git
Version Control & GitVersion Control & Git
Version Control & Git
 
Svn vs mercurial vs github
Svn  vs  mercurial vs  githubSvn  vs  mercurial vs  github
Svn vs mercurial vs github
 
Git Tutorial I
Git Tutorial IGit Tutorial I
Git Tutorial I
 
Git basic
Git basicGit basic
Git basic
 
A Practical Introduction to git
A Practical Introduction to gitA Practical Introduction to git
A Practical Introduction to git
 
Git basics
Git basicsGit basics
Git basics
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
 

Viewers also liked

Git: A Getting Started Presentation
Git: A Getting Started PresentationGit: A Getting Started Presentation
Git: A Getting Started Presentation
Nap Ramirez
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
Joel Krebs
 

Viewers also liked (19)

Git vs SVN
Git vs SVNGit vs SVN
Git vs SVN
 
Migrating To GitHub
Migrating To GitHub  Migrating To GitHub
Migrating To GitHub
 
Git presentation
Git presentationGit presentation
Git presentation
 
Comparison of SVN and Git
Comparison of SVN and GitComparison of SVN and Git
Comparison of SVN and Git
 
Getting Started with Git: A Primer for SVN and TFS Users
Getting Started with Git: A Primer for SVN and TFS UsersGetting Started with Git: A Primer for SVN and TFS Users
Getting Started with Git: A Primer for SVN and TFS Users
 
Training: Day Two - Eclipse, Git, Maven
Training: Day Two - Eclipse, Git, MavenTraining: Day Two - Eclipse, Git, Maven
Training: Day Two - Eclipse, Git, Maven
 
Why we ditched TFS and embraced Git, Github, TeamCity and Myget
Why we ditched TFS and embraced Git, Github, TeamCity and MygetWhy we ditched TFS and embraced Git, Github, TeamCity and Myget
Why we ditched TFS and embraced Git, Github, TeamCity and Myget
 
Lets git to it
Lets git to itLets git to it
Lets git to it
 
From SVN to Git
From SVN to GitFrom SVN to Git
From SVN to Git
 
Git: A Getting Started Presentation
Git: A Getting Started PresentationGit: A Getting Started Presentation
Git: A Getting Started Presentation
 
GIT / SVN
GIT / SVNGIT / SVN
GIT / SVN
 
Git Introduction
Git IntroductionGit Introduction
Git Introduction
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git Presentation
Git PresentationGit Presentation
Git Presentation
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
 
Taking your version control to a next level with TFS and Git
Taking your version control to a next level with TFS and GitTaking your version control to a next level with TFS and Git
Taking your version control to a next level with TFS and Git
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
 

Similar to From svn to git

Using Git as your VCS with Bioconductor
Using Git as your VCS with BioconductorUsing Git as your VCS with Bioconductor
Using Git as your VCS with Bioconductor
timyates
 
Git 入门与实践
Git 入门与实践Git 入门与实践
Git 入门与实践
Terry Wang
 
Git 入门 与 实践
Git 入门 与 实践Git 入门 与 实践
Git 入门 与 实践
Terry Wang
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
Brian K. Vagnini
 

Similar to From svn to git (20)

Using Git as your VCS with Bioconductor
Using Git as your VCS with BioconductorUsing Git as your VCS with Bioconductor
Using Git as your VCS with Bioconductor
 
Git
GitGit
Git
 
Lets Git Together
Lets Git TogetherLets Git Together
Lets Git Together
 
Git 入门与实践
Git 入门与实践Git 入门与实践
Git 入门与实践
 
Git
GitGit
Git
 
Git 入门 与 实践
Git 入门 与 实践Git 入门 与 实践
Git 入门 与 实践
 
Working in Team using Git in Unity
Working in Team using Git in UnityWorking in Team using Git in Unity
Working in Team using Git in Unity
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
 
Git Tech Talk
Git  Tech TalkGit  Tech Talk
Git Tech Talk
 
Practical git for developers
Practical git for developersPractical git for developers
Practical git for developers
 
Understanding about git
Understanding about gitUnderstanding about git
Understanding about git
 
From svn to git
From svn to gitFrom svn to git
From svn to git
 
Git introduction
Git introductionGit introduction
Git introduction
 
GIT Basics
GIT BasicsGIT Basics
GIT Basics
 
Hello git
Hello git Hello git
Hello git
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptx
 
Introduce to Git and Jenkins
Introduce to Git and JenkinsIntroduce to Git and Jenkins
Introduce to Git and Jenkins
 
Git Going at JavaZone 2010
Git Going at JavaZone 2010Git Going at JavaZone 2010
Git Going at JavaZone 2010
 
Contributing to Open Source with GitHub GDSC
Contributing to Open Source with GitHub GDSCContributing to Open Source with GitHub GDSC
Contributing to Open Source with GitHub GDSC
 
F3X12 FLOW3 Project Lifecycle
F3X12 FLOW3 Project LifecycleF3X12 FLOW3 Project Lifecycle
F3X12 FLOW3 Project Lifecycle
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

From svn to git

  • 1. from svn to git checkout svn; commit git
  • 2. svn = remote git = local While with svn, everything routes through the remote repository, git introduces the notion of a “local” repository Image from http://techidiocy.com/understand-git-clone-command-svn-checkout-vs-git- clone/
  • 3. svn = URL => <root> git = URL => repository Branching/tagging are an inherent part of git trunk => master Image from http://www.mactech.com/articles/mactech/Vol.22/22.11/2211XCode/index.html
  • 4. svn = files git = changesets Image from https://jazz.net/forum/questions/133603/how-to-create-remote-change-setswith-external- link With svn, you commit whole files. svn diff is a diff of the two versions of a file. With git, the diff IS what you commit.
  • 5. cloning & pulling To pull down a project from the remote repo: git clone <repo_URL> Then update with: git pull vs. git fetch/merge Remote Repository Local Repository Working Directory git fetch git merge git pull
  • 6. committing Be sure to: git config --global user.name "Your Name Comes Here" git config --global user.email you@yourdomain.example.com Then: git add . git commit -m "A descriptive and useful message."
  • 7. pushing To push to the existing remote origin: git push To create a new remote origin: git push -u origin <branch_name> Remote Repository Local Repository Working Directory git push git commit
  • 8. branching/tagging To branch: git branch <branch_name> git checkout <branch_name> OR git checkout -b <branch_name> To Tag: git tag -a <tag> Image from http://nvie.com/posts/a-successful-git-branching-model/
  • 9. merging/rebasing To merge from a branch: git merge <branch> To rebase from a branch: git rebase <branch> Image from http://codingdomain.com/git/rebase/
  • 10. pull requests Image from https://www.atlassian.com/git/workflows#!pull- request
  • 11. references & learning Git Basics http://git-scm.com/book/en/Getting-Started-Git-Basics Git - SVN Crash Course http://git-scm.com/course/svn.html Code School - Try Git https://try.github.io Learn Branching http://pcottle.github.io/learnGitBranching/