SlideShare a Scribd company logo
1 of 20
SVN to GIT Migration
By:
Sanjay Lakhanpal
Syed Zaigham Abbas
 Founded in 2004 ,HQ at Dallas TX,
present in multiple locations in USA and
India
 Leader in DevOps Transformation, Cloud
Enablement and Test Automation
 One of top 100 fastest growing
companies of Dallas twice in a row
 Clientele includes Fortune 50 companies
About Newt Global
Speakers
11/18/2016 Copyright 3
• Sanjay is Technical Leader, His area of expertise includes Digital
Transformation, DevOps, Test Automation Sales, Delivery and
Relationship Management
• He has 20+ years of IT industry experience and delivered multiple
enterprise scale projects for Fortune 500 customer base
SANJAY LAKHANPAL
Managing Director at
Newt Global
• Lead Engineer driving enterprise SCM tool migrations
• Hands on migration experience in migrating SVN & AccuRev to
Git
SYED ZAIGHAM ABBAS
Lead DevOps Engineer
Newt Global
Housekeeping Instructions
• All phones are set to mute. If you have any questions, please type them in the Chat
window located beside the presentation panel
• We have already received several questions from the registrants, which will be
answered by the speakers during the Q & A session
• We will continue to collect more questions during the session as we receive and will
try to answer them during today’s session
• In case if you do not receive answers to your question today, you will certainly
receive answers via email shortly
• Thanks for your participation and enjoy the session!
11/18/2016 Copyright 4
SVN to GIT Migration
Introduction
Git’s Features
Benefits of Git over SVN
Migrating from SVN to Git
Demo
Conclusion
11/18/2016 Copyright 5
Git Features
Repositories
URL
Branches
Commits
Commands
Colors
Visualize
11/18/2016 Copyright 6
Git’s Features: Repositories
As Subversion is CVCS (Centralized Version Control System) tool, for
each project there is a single repository at some detached central place
where all the history is and which you checkout and commit into.
Git works differently, each copy of the project tree (we call that the
working copy) carries its own repository around (in the .gitsubdirectory
in the project tree root). So you can have local and remote branches.
You can also have a so-called bare repositorywhich is not attached to a
working copy; that is useful especially when you want to publish your
repository
11/18/2016 Copyright 7
Git Features: URL
In Subversion the URLidentifies the location of the repository and the
path inside the repository, so you organize the layout of the repository
and its meaning.
Normally you would have trunk/, branches/and tags/directories.
In Gitthe URLis just the location of the repository, and it always contains
branches and tags.
One of the branches is the default (normally named master).
11/18/2016 Copyright 8
Git’s Features: Branches
In Subversion branches are just additional folders containing a copy of the code
base.
When an SVN branch is merged, the branch has to be deleted to prevent an
erroneous merge back to trunk in future.
GHE branches however have their own history and revision tree giving
you explicit information from where it was forked, what commits have
happened and if it has been merged into another branch or not. This
makes branch history management much easier.
In GHE, the branch history is maintained and is completely traceable.
Tracking merge history is a serious problem with SVN.
11/18/2016 Copyright 9
Git’s Features: Commits
Each commit has an author and a committer field, which record who
and when created the change and who committed it
Git is designed to work well with patches coming by mail -in that case,
the author and the committer will be different.
•Git config --global user.name "Your Name Comes Here"
•Git config --global user.emailyou@yourdomain.example.com
Git will try to guess your real name and email, but especially with email
it is likely to get it wrong. You can check it using git config -l and set
them with:
11/18/2016 Copyright 10
Git Features: Commands
•Eg- “git commit …. “
The Git commands are in the form “git command <command_name>”.
•Eg “git-commit ….”
You can interchangeably use the git-command form as well
11/18/2016 Copyright 11
Git Features: Colours
• Git can produce colorful output for commands
• Colors are disabled by default
11/18/2016 Copyright 12
Git Features: Visualize
11/18/2016 Copyright 13
Git comes with built-in
GUI tools for committing
(git-gui) and browsing
(gitk), but there are
several third-party tools
for users looking for
platform-specific
experience.
Watch your repository
using the GitHub
Desktop viewer as you
go.
Git Features: Visualize (Eclipse)
11/18/2016 Copyright 14
Benefits of Git over SVN
11/18/2016 Copyright 15
SVN GIT
Distributed Nature
User Interface Branch Handling
Single Repository Performance
Space Requirements
Importing an SVN repo into git
• Get read-only user access for SVN repository
• gitsvn utility is available in local environment
• Download svn-migration-scripts.jar from
https://bitbucket.org/atlassian/svn-migration-
scripts/downloads
Prerequisites:
• Get Org. name, team name and members from the respective
teams.
• Setup Organization.
• Setup Team and assign team members.
• Create repository and push the code from lab.
Setup Remote GitHub Server
11/18/2016 Copyright 16
Importing an SVN repo into git
•java -jar ~/svn-migration-scripts.jar authors <SVN Repo URL> > authors.txt
Create the users list from the SVN
•git svn clone --stdlayout --authors-file=authors.txt <SVN Repo URL> <GitHub Repo Name>
Clone your SVN repo into as a Git
•git remote add origin <GitHub Repo URL>
Add the GitHub repository
•git push –u origin master
Push the code to remote GitHub
•java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar clean-git --force
Bring the SVN branches and tags as in local Git
•git push --all
Push the branches and tags to Remote GitHub
11/18/2016 Copyright 17
Demo
11/18/2016 Copyright 18
Contact Us
For any questions/clarifications please contact:
Satheesh Reddy, Sales Manager
Newt Global Consulting LLC.
satheeshr@newtglobalcorp.com
http://newtglobal.com/
11/18/2016 Copyright 19
11/18/2016 Copyright 20

More Related Content

What's hot

Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
Robert Lee-Cann
 
Git: A Getting Started Presentation
Git: A Getting Started PresentationGit: A Getting Started Presentation
Git: A Getting Started Presentation
Nap Ramirez
 

What's hot (20)

Introduction git
Introduction gitIntroduction git
Introduction git
 
Git presentation
Git presentationGit presentation
Git presentation
 
Evolution of Version Control In Open Source
Evolution of Version Control In Open SourceEvolution of Version Control In Open Source
Evolution of Version Control In Open Source
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Introduction to github slideshare
Introduction to github slideshareIntroduction to github slideshare
Introduction to github slideshare
 
Git tutorial
Git tutorial Git tutorial
Git tutorial
 
Git best practices 2016
Git best practices 2016Git best practices 2016
Git best practices 2016
 
Version Control History and Git Basics
Version Control History and Git BasicsVersion Control History and Git Basics
Version Control History and Git Basics
 
Git and GitHub workflows
Git and GitHub workflowsGit and GitHub workflows
Git and GitHub workflows
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
An introduction to Git and GitFlow
An introduction to Git and GitFlowAn introduction to Git and GitFlow
An introduction to Git and GitFlow
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
 
HacktoberFest-Git&GitHub
HacktoberFest-Git&GitHubHacktoberFest-Git&GitHub
HacktoberFest-Git&GitHub
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
 
Training: Day Two - Eclipse, Git, Maven
Training: Day Two - Eclipse, Git, MavenTraining: Day Two - Eclipse, Git, Maven
Training: Day Two - Eclipse, Git, Maven
 
Software Versioning with Bitbucket and Eclipse
Software Versioning with Bitbucket and EclipseSoftware Versioning with Bitbucket and Eclipse
Software Versioning with Bitbucket and Eclipse
 
Git: A Getting Started Presentation
Git: A Getting Started PresentationGit: A Getting Started Presentation
Git: A Getting Started Presentation
 

Viewers also liked

7. replication internals scott hernandez
7. replication internals scott hernandez7. replication internals scott hernandez
7. replication internals scott hernandez
MongoDB
 
Secret Life of a Weather Datum end of project event
Secret Life of a Weather Datum end of project eventSecret Life of a Weather Datum end of project event
Secret Life of a Weather Datum end of project event
lifeofdata
 
Heavy Metal PowerPivot Remastered
Heavy Metal PowerPivot RemasteredHeavy Metal PowerPivot Remastered
Heavy Metal PowerPivot Remastered
Jason Himmelstein
 
Samanage-Website-Redesign-Jan2017
Samanage-Website-Redesign-Jan2017Samanage-Website-Redesign-Jan2017
Samanage-Website-Redesign-Jan2017
WhatConts
 
Division of roles and responsibilities
Division of roles and responsibilitiesDivision of roles and responsibilities
Division of roles and responsibilities
kausargulaid
 
2016 SRA Globalization Poster_Justice_Caruson
2016 SRA Globalization Poster_Justice_Caruson2016 SRA Globalization Poster_Justice_Caruson
2016 SRA Globalization Poster_Justice_Caruson
Sandy Justice
 
Science Communication 2.0: changing University attitude through Science resea...
Science Communication 2.0: changing University attitude through Science resea...Science Communication 2.0: changing University attitude through Science resea...
Science Communication 2.0: changing University attitude through Science resea...
Miquel Duran
 
MongoDB and AWS Best Practices
MongoDB and AWS Best PracticesMongoDB and AWS Best Practices
MongoDB and AWS Best Practices
MongoDB
 
BPM & Enterprise Middleware - Datasheet
BPM & Enterprise Middleware - DatasheetBPM & Enterprise Middleware - Datasheet
BPM & Enterprise Middleware - Datasheet
Xpand IT
 
Microsoft xamarin-experience
Microsoft xamarin-experienceMicrosoft xamarin-experience
Microsoft xamarin-experience
Xpand IT
 

Viewers also liked (20)

7. replication internals scott hernandez
7. replication internals scott hernandez7. replication internals scott hernandez
7. replication internals scott hernandez
 
Demystify DevOps
Demystify DevOpsDemystify DevOps
Demystify DevOps
 
Secret Life of a Weather Datum end of project event
Secret Life of a Weather Datum end of project eventSecret Life of a Weather Datum end of project event
Secret Life of a Weather Datum end of project event
 
Mgidigitalglobalization
MgidigitalglobalizationMgidigitalglobalization
Mgidigitalglobalization
 
Heavy Metal PowerPivot Remastered
Heavy Metal PowerPivot RemasteredHeavy Metal PowerPivot Remastered
Heavy Metal PowerPivot Remastered
 
Revving Up Revenue By Replenishing
Revving Up Revenue By ReplenishingRevving Up Revenue By Replenishing
Revving Up Revenue By Replenishing
 
Heyat terzi report (Mart 2016)
Heyat terzi report (Mart 2016)Heyat terzi report (Mart 2016)
Heyat terzi report (Mart 2016)
 
Samanage-Website-Redesign-Jan2017
Samanage-Website-Redesign-Jan2017Samanage-Website-Redesign-Jan2017
Samanage-Website-Redesign-Jan2017
 
Division of roles and responsibilities
Division of roles and responsibilitiesDivision of roles and responsibilities
Division of roles and responsibilities
 
2016 SRA Globalization Poster_Justice_Caruson
2016 SRA Globalization Poster_Justice_Caruson2016 SRA Globalization Poster_Justice_Caruson
2016 SRA Globalization Poster_Justice_Caruson
 
онлайн бронирование модуль для турагенств
онлайн бронирование модуль для турагенствонлайн бронирование модуль для турагенств
онлайн бронирование модуль для турагенств
 
Creative Overview
Creative OverviewCreative Overview
Creative Overview
 
Part 1
Part 1Part 1
Part 1
 
Science Communication 2.0: changing University attitude through Science resea...
Science Communication 2.0: changing University attitude through Science resea...Science Communication 2.0: changing University attitude through Science resea...
Science Communication 2.0: changing University attitude through Science resea...
 
Cartagena Data Festival | Telling Stories with Data 2015 04-21
Cartagena Data Festival | Telling Stories with Data 2015 04-21Cartagena Data Festival | Telling Stories with Data 2015 04-21
Cartagena Data Festival | Telling Stories with Data 2015 04-21
 
MongoDB and AWS Best Practices
MongoDB and AWS Best PracticesMongoDB and AWS Best Practices
MongoDB and AWS Best Practices
 
BPM & Enterprise Middleware - Datasheet
BPM & Enterprise Middleware - DatasheetBPM & Enterprise Middleware - Datasheet
BPM & Enterprise Middleware - Datasheet
 
Ov big data
Ov big dataOv big data
Ov big data
 
Grow Customer Retention with Predictive Marketing and User-Generated Content
Grow Customer Retention with Predictive Marketing and User-Generated ContentGrow Customer Retention with Predictive Marketing and User-Generated Content
Grow Customer Retention with Predictive Marketing and User-Generated Content
 
Microsoft xamarin-experience
Microsoft xamarin-experienceMicrosoft xamarin-experience
Microsoft xamarin-experience
 

Similar to Webinar : SVN to GIT Migration

Version control git day03
Version control   git day03Version control   git day03
Version control git day03
Gourav Varma
 
Version control git day03(amarnath dada)
Version control   git day03(amarnath dada)Version control   git day03(amarnath dada)
Version control git day03(amarnath dada)
Gourav Varma
 

Similar to Webinar : SVN to GIT Migration (20)

Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
 
Git essential training & sharing self
Git essential training & sharing selfGit essential training & sharing self
Git essential training & sharing self
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
 
Version control git day03
Version control   git day03Version control   git day03
Version control git day03
 
Git Series - Part 1
Git Series - Part 1 Git Series - Part 1
Git Series - Part 1
 
Version control git day03(amarnath dada)
Version control   git day03(amarnath dada)Version control   git day03(amarnath dada)
Version control git day03(amarnath dada)
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
GitHub Event.pptx
GitHub Event.pptxGitHub Event.pptx
GitHub Event.pptx
 
Bitbucket as a code server and pmt
Bitbucket as a code server and pmt Bitbucket as a code server and pmt
Bitbucket as a code server and pmt
 
Git tech
Git techGit tech
Git tech
 
Git usage (Basics and workflow)
Git usage (Basics and workflow)Git usage (Basics and workflow)
Git usage (Basics and workflow)
 
Git
GitGit
Git
 
Git
GitGit
Git
 
Git for developers
Git for developersGit for developers
Git for developers
 
Introduction to git & github
Introduction to git & githubIntroduction to git & github
Introduction to git & github
 
August OpenNTF Webinar - Git and GitHub Explained
August OpenNTF Webinar - Git and GitHub ExplainedAugust OpenNTF Webinar - Git and GitHub Explained
August OpenNTF Webinar - Git and GitHub Explained
 
Git interview questions | Edureka
Git interview questions | EdurekaGit interview questions | Edureka
Git interview questions | Edureka
 
Optimize Your Enterprise Git Webinar
Optimize Your Enterprise Git WebinarOptimize Your Enterprise Git Webinar
Optimize Your Enterprise Git Webinar
 

More from Newt Global Consulting LLC

More from Newt Global Consulting LLC (8)

Why Cloud and DevOps are interlinked?
Why Cloud and DevOps are interlinked?Why Cloud and DevOps are interlinked?
Why Cloud and DevOps are interlinked?
 
Webinar : Microservices and Containerization
Webinar : Microservices and ContainerizationWebinar : Microservices and Containerization
Webinar : Microservices and Containerization
 
Webinar : Docker in Production
Webinar : Docker in ProductionWebinar : Docker in Production
Webinar : Docker in Production
 
Webinar Docker Tri Series
Webinar Docker Tri SeriesWebinar Docker Tri Series
Webinar Docker Tri Series
 
Whitepaper : Testing Micro Services Part I & Part 2
Whitepaper : Testing Micro Services Part I & Part 2Whitepaper : Testing Micro Services Part I & Part 2
Whitepaper : Testing Micro Services Part I & Part 2
 
Whitepaper : Microservices In or Out
Whitepaper : Microservices   In or OutWhitepaper : Microservices   In or Out
Whitepaper : Microservices In or Out
 
Whitepaper : Event Driven Micro Services
Whitepaper : Event Driven Micro ServicesWhitepaper : Event Driven Micro Services
Whitepaper : Event Driven Micro Services
 
Whitepaper : Building an Efficient Microservices Architecture
Whitepaper : Building an Efficient Microservices ArchitectureWhitepaper : Building an Efficient Microservices Architecture
Whitepaper : Building an Efficient Microservices Architecture
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
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
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Webinar : SVN to GIT Migration

  • 1. SVN to GIT Migration By: Sanjay Lakhanpal Syed Zaigham Abbas
  • 2.  Founded in 2004 ,HQ at Dallas TX, present in multiple locations in USA and India  Leader in DevOps Transformation, Cloud Enablement and Test Automation  One of top 100 fastest growing companies of Dallas twice in a row  Clientele includes Fortune 50 companies About Newt Global
  • 3. Speakers 11/18/2016 Copyright 3 • Sanjay is Technical Leader, His area of expertise includes Digital Transformation, DevOps, Test Automation Sales, Delivery and Relationship Management • He has 20+ years of IT industry experience and delivered multiple enterprise scale projects for Fortune 500 customer base SANJAY LAKHANPAL Managing Director at Newt Global • Lead Engineer driving enterprise SCM tool migrations • Hands on migration experience in migrating SVN & AccuRev to Git SYED ZAIGHAM ABBAS Lead DevOps Engineer Newt Global
  • 4. Housekeeping Instructions • All phones are set to mute. If you have any questions, please type them in the Chat window located beside the presentation panel • We have already received several questions from the registrants, which will be answered by the speakers during the Q & A session • We will continue to collect more questions during the session as we receive and will try to answer them during today’s session • In case if you do not receive answers to your question today, you will certainly receive answers via email shortly • Thanks for your participation and enjoy the session! 11/18/2016 Copyright 4
  • 5. SVN to GIT Migration Introduction Git’s Features Benefits of Git over SVN Migrating from SVN to Git Demo Conclusion 11/18/2016 Copyright 5
  • 7. Git’s Features: Repositories As Subversion is CVCS (Centralized Version Control System) tool, for each project there is a single repository at some detached central place where all the history is and which you checkout and commit into. Git works differently, each copy of the project tree (we call that the working copy) carries its own repository around (in the .gitsubdirectory in the project tree root). So you can have local and remote branches. You can also have a so-called bare repositorywhich is not attached to a working copy; that is useful especially when you want to publish your repository 11/18/2016 Copyright 7
  • 8. Git Features: URL In Subversion the URLidentifies the location of the repository and the path inside the repository, so you organize the layout of the repository and its meaning. Normally you would have trunk/, branches/and tags/directories. In Gitthe URLis just the location of the repository, and it always contains branches and tags. One of the branches is the default (normally named master). 11/18/2016 Copyright 8
  • 9. Git’s Features: Branches In Subversion branches are just additional folders containing a copy of the code base. When an SVN branch is merged, the branch has to be deleted to prevent an erroneous merge back to trunk in future. GHE branches however have their own history and revision tree giving you explicit information from where it was forked, what commits have happened and if it has been merged into another branch or not. This makes branch history management much easier. In GHE, the branch history is maintained and is completely traceable. Tracking merge history is a serious problem with SVN. 11/18/2016 Copyright 9
  • 10. Git’s Features: Commits Each commit has an author and a committer field, which record who and when created the change and who committed it Git is designed to work well with patches coming by mail -in that case, the author and the committer will be different. •Git config --global user.name "Your Name Comes Here" •Git config --global user.emailyou@yourdomain.example.com Git will try to guess your real name and email, but especially with email it is likely to get it wrong. You can check it using git config -l and set them with: 11/18/2016 Copyright 10
  • 11. Git Features: Commands •Eg- “git commit …. “ The Git commands are in the form “git command <command_name>”. •Eg “git-commit ….” You can interchangeably use the git-command form as well 11/18/2016 Copyright 11
  • 12. Git Features: Colours • Git can produce colorful output for commands • Colors are disabled by default 11/18/2016 Copyright 12
  • 13. Git Features: Visualize 11/18/2016 Copyright 13 Git comes with built-in GUI tools for committing (git-gui) and browsing (gitk), but there are several third-party tools for users looking for platform-specific experience. Watch your repository using the GitHub Desktop viewer as you go.
  • 14. Git Features: Visualize (Eclipse) 11/18/2016 Copyright 14
  • 15. Benefits of Git over SVN 11/18/2016 Copyright 15 SVN GIT Distributed Nature User Interface Branch Handling Single Repository Performance Space Requirements
  • 16. Importing an SVN repo into git • Get read-only user access for SVN repository • gitsvn utility is available in local environment • Download svn-migration-scripts.jar from https://bitbucket.org/atlassian/svn-migration- scripts/downloads Prerequisites: • Get Org. name, team name and members from the respective teams. • Setup Organization. • Setup Team and assign team members. • Create repository and push the code from lab. Setup Remote GitHub Server 11/18/2016 Copyright 16
  • 17. Importing an SVN repo into git •java -jar ~/svn-migration-scripts.jar authors <SVN Repo URL> > authors.txt Create the users list from the SVN •git svn clone --stdlayout --authors-file=authors.txt <SVN Repo URL> <GitHub Repo Name> Clone your SVN repo into as a Git •git remote add origin <GitHub Repo URL> Add the GitHub repository •git push –u origin master Push the code to remote GitHub •java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar clean-git --force Bring the SVN branches and tags as in local Git •git push --all Push the branches and tags to Remote GitHub 11/18/2016 Copyright 17
  • 19. Contact Us For any questions/clarifications please contact: Satheesh Reddy, Sales Manager Newt Global Consulting LLC. satheeshr@newtglobalcorp.com http://newtglobal.com/ 11/18/2016 Copyright 19