SlideShare a Scribd company logo
Versiebeheer met Git
    Andrej Koelewijn, IT-eye

  Jfall 2009, 11 november 2009
Version Control with Git
Eenvoudig, tooling
Single point of control
Security
Subversion is NICE!!!
Version Control with Git
Mergen kan beter...
Iteratie stabiel afronden...
Iteratie stabiel afronden...
Telewerken lijkt onvermijderlijk...
SVN Repo thuis niet beschikbaar...
Onderhouden fork lastig...
Lost Git al deze problemen op?
Why: Linus
●   Linus basically applies patches all day
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Gedistribueerd
Gedistribueerd

 3-way merge
Gedistribueerd

 3-way merge

     Snel
Gedistribueerd

 3-way merge

     Snel

   Efficient
$ mkdir proj
$ cd proj
$ git init
Initialized empty Git repository in
/home/akoelewijn/projects/git-demo/proj/.git/
$ vi readme.txt
$ git add .
$ git commit -m "Added readme"
[master (root-commit) 339bb9e] Added readme
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 readme.txt
$ git log
commit 339bb9e5417ae66f755ca49f64a9eba61cec1e46
Author: Andrej Koelewijn <andrej@koelewijn.net>
Date:   Fri Nov 6 15:10:38 2009 +0100


    Added readme
$
$ git branch
* master
$ git checkout -b feature1
Switched to a new branch 'feature1'
$ vi HelloWorld.gr
$ git add .
$ git commit -m "Added hello world script"
[feature1 de8e8a1] Added hello world script
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 HelloWorld.gr
$ git checkout master
Switched to branch 'master'
$ vi readme.txt
$ git commit -am "Added some text to readme"
[master e5d4f53] Added some text to readme
1 files changed, 1 insertions(+), 0 deletions(-)
$ git merge feature1
Merge made by recursive.
HelloWorld.gr |      1 +
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 HelloWorld.gr
$ git log --pretty=oneline –graph
*   9fe15c09afcf5d9c5699cc721f17905a7a0aa2e6 Merge branch 'feature1'
|
| * de8e8a1fd33c37257d3d9843d1844c613d576819 Added hello world script
* | e5d4f530feef98ca66ef96a0fdd5efab377610fa Added some text to readme
|/
* 339bb9e5417ae66f755ca49f64a9eba61cec1e46 Added readme
$ git log --pretty=oneline –graph
*   9fe15c09afcf5d9c5699cc721f17905a7a0aa2e6 Merge branch 'feature1'
|
| * de8e8a1fd33c37257d3d9843d1844c613d576819 Added hello world script
* | e5d4f530feef98ca66ef96a0fdd5efab377610fa Added some text to readme
|/
* 339bb9e5417ae66f755ca49f64a9eba61cec1e46 Added readme
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
$ git log --pretty=oneline --graph
* 3387f004f910bf28f0d7da3ca0e6943b780f3549 Added info to readme
* 2d7effcac27a54688ea6a26fb849730ccdb8578a Added readme file
$ git branch
 feature1
* master
$ git checkout feature1
Switched to branch 'feature1'
$ git log --pretty=oneline --graph
* 7c5f57666847452b4b54dc7731ce0e8efd4e2ffc Added helloworld file
* 2d7effcac27a54688ea6a26fb849730ccdb8578a Added readme file
$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: Added helloworld file
$ git checkout master
Switched to branch 'master'
$ git merge feature1
Updating 3387f00..c51aef2
Fast forward
HelloWorld.gr |    2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
create mode 100644 HelloWorld.gr
$ git log --pretty=oneline --graph
* c51aef26645fbee96b5365caea656d9417c84a5d Added helloworld file
* 3387f004f910bf28f0d7da3ca0e6943b780f3549 Added info to readme
* 2d7effcac27a54688ea6a26fb849730ccdb8578a Added readme file
Onder de motorkap...
6ff87c4664981e4397625791c8ea3bbb5f2279a3
Git objecten
Commit = snapshot
Commit history = Directed graph
Version Control with Git
Version Control with Git
Version Control with Git
$ git init
Initialized empty Git repository in /home/akoelewijn/projects/git-
demo/usr1/proj1/.git/
$ vi readme.txt
$ git add .
$ git commit -m "First commit"
[master (root-commit) 8d0a113] First commit
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 readme.txt


     $ git clone file:///home/akoelewijn/projects/git-demo/usr1/proj1/
     Initialized empty Git repository in /home/akoelewijn/projects/git-
     demo/usr2/proj1/.git/
     remote: Counting objects: 3, done.
     remote: Total 3 (delta 0), reused 0 (delta 0)
     Receiving objects: 100% (3/3), done.
     $ git log
     commit 8d0a1131b202e9ddc34161f6b57f9e96702c6fc0
     Author: Andrej Koelewijn <andrej@koelewijn.net>
     Date:   Sun Nov 8 13:39:57 2009 +0100

         First commit
$ vi HelloWorld.gr
$ git add HelloWorld.gr
$ git commit -m "Added hello world script"
[master b8c72a9] Added hello world script
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 HelloWorld.gr

         $ git pull
         remote: Counting objects: 4, done.
         remote: Compressing objects: 100% (2/2), done.
         remote: Total 3 (delta 0), reused 0 (delta 0)
         Unpacking objects: 100% (3/3), done.
         From file:///home/akoelewijn/projects/git-demo/usr1/proj1
             8d0a113..b8c72a9 master      -> origin/master
         Updating 8d0a113..b8c72a9
         Fast forward
           HelloWorld.gr |    1 +
           1 files changed, 1 insertions(+), 0 deletions(-)
           create mode 100644 HelloWorld.gr
         $
         $ git log --pretty=oneline --graph
         * b8c72a91edc1f19578dd48c18e02c2025a8dd681 Added hello world script
         * 8d0a1131b202e9ddc34161f6b57f9e96702c6fc0 First commit
Version Control with Git
.git/config:
[core]
         repositoryformatversion = 0
         filemode = true
         bare = false
         logallrefupdates = true
[remote "origin"]
         fetch = +refs/heads/*:refs/remotes/origin/*
         url = file:///home/akoelewijn/projects/git-demo/usr1/proj1/
[branch "master"]
         remote = origin
         merge = refs/heads/master
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
$ git svn clone file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1/
Initialized empty Git repository in /home/akoelewijn/projects/git-
demo/repo1/.git/
    A   trunk/proj1/readme.txt
W: +empty_dir: branches
W: +empty_dir: tags
r1 = bf4e7734d6c9669a07bfbf05aa95e4033946e572 (git-svn)
    M   trunk/proj1/readme.txt
r2 = 7bee0ad4161eb4af856445f618687221e41e4c54 (git-svn)
Checked out HEAD:
  file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1 r2

$ cd repo1
$ vi trunk/proj1/readme.txt
$ git add .
$ git commit -m "A change from git"
[master c1866ef] A change from git
 1 files changed, 1 insertions(+), 0 deletions(-)
$ git svn rebase
Current branch master is up to date.
$ git svn dcommit
Committing to file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1 ...
    M   trunk/proj1/readme.txt
Committed r3
    M   trunk/proj1/readme.txt
r3 = b636e7fac235e2c0a60995c63aae17f23f3b31a7 (git-svn)
No changes between current HEAD and refs/remotes/git-svn
Resetting to the latest refs/remotes/git-svn
$ git svn log
------------------------------------------------------------------------
r3 | akoelewijn | 2009-11-08 21:15:37 +0100 (Sun, 08 Nov 2009) | 2 lines

A change from git

------------------------------------------------------------------------
r2 | akoelewijn | 2009-09-24 13:00:08 +0200 (Thu, 24 Sep 2009) | 2 lines

First changes

------------------------------------------------------------------------
r1 | akoelewijn | 2009-09-24 12:38:16 +0200 (Thu, 24 Sep 2009) | 2 lines

Initial import
$ git log

commit b636e7fac235e2c0a60995c63aae17f23f3b31a7
Author: akoelewijn <akoelewijn@be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3>
Date:   Sun Nov 8 20:15:37 2009 +0000

    A change from git

    git-svn-id: file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1@3
be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3

commit 7bee0ad4161eb4af856445f618687221e41e4c54
Author: akoelewijn <akoelewijn@be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3>
Date:   Thu Sep 24 11:00:08 2009 +0000

    First changes

    git-svn-id: file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1@2
be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3

commit bf4e7734d6c9669a07bfbf05aa95e4033946e572
Author: akoelewijn <akoelewijn@be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3>
Date:   Thu Sep 24 10:38:16 2009 +0000

    Initial import

    git-svn-id: file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1@1
be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3
Version Control with Git
Lost Git al deze problemen op?
Version Control with Git
Version Control with Git
SVN Repo thuis niet beschikbaar...
Version Control with Git
Version Control with Git
Version Control with Git
Version Control with Git
Onderhouden fork lastig...
Beter door snapshots
Nadeel – clonen svn repo traag
Betere tool dan SVN
            ●




    Git een goede aanvulling op SVN
    ●




Gedistribueerd werken nuttig voor
●


    multi-team development
        Goede tool voor integratie
        ●


               managers
http://www.it-eye.nl/
    andrej.koelewijn@it-eye.nl
http://www.andrejkoelewijn.com/

More Related Content

What's hot (20)

PDF
Gitosis on Mac OS X Server
Yasuhiro Asaka
 
PDF
HackMTY - GitHub Workshop
Luis Lamadrid
 
ODP
DrupalCafe5 VCS
Yuriy Gerasimov
 
PDF
Keep your GIT history clean
tomasbro
 
PDF
Basicsof c make and git for a hello qt application
Dinesh Manajipet
 
PDF
More than Applications: (Ab)using Docker to Improve the Portability of Everyt...
Dexter Horthy
 
PDF
pg_proctab: Accessing System Stats in PostgreSQL
Mark Wong
 
PDF
GoLang & GoatCore
Sebastian Pożoga
 
PDF
Weird things we've seen with OpenStack Neutron
Nick Jones
 
PDF
Quay 3.3 installation
Jooho Lee
 
PPTX
OpenShift4 Installation by UPI on kvm
Jooho Lee
 
PDF
Performance testing of microservices in Action
Alexander Kachur
 
PPTX
Polling server
Harish Chetty
 
PDF
Containers for sysadmins
Carlos de Alfonso Laguna
 
PPTX
Git For Beginer
Trung Huynh
 
PDF
Building Docker images with Puppet
Nick Jones
 
PDF
Variations on PostgreSQL Replication
EDB
 
PDF
How to ride a whale
Vincent Vermersh
 
TXT
Server log
Stenli Siderov
 
Gitosis on Mac OS X Server
Yasuhiro Asaka
 
HackMTY - GitHub Workshop
Luis Lamadrid
 
DrupalCafe5 VCS
Yuriy Gerasimov
 
Keep your GIT history clean
tomasbro
 
Basicsof c make and git for a hello qt application
Dinesh Manajipet
 
More than Applications: (Ab)using Docker to Improve the Portability of Everyt...
Dexter Horthy
 
pg_proctab: Accessing System Stats in PostgreSQL
Mark Wong
 
GoLang & GoatCore
Sebastian Pożoga
 
Weird things we've seen with OpenStack Neutron
Nick Jones
 
Quay 3.3 installation
Jooho Lee
 
OpenShift4 Installation by UPI on kvm
Jooho Lee
 
Performance testing of microservices in Action
Alexander Kachur
 
Polling server
Harish Chetty
 
Containers for sysadmins
Carlos de Alfonso Laguna
 
Git For Beginer
Trung Huynh
 
Building Docker images with Puppet
Nick Jones
 
Variations on PostgreSQL Replication
EDB
 
How to ride a whale
Vincent Vermersh
 
Server log
Stenli Siderov
 

Similar to Version Control with Git (20)

PDF
Introducción a git y GitHub
Lucas Videla
 
PDF
Git Tricks — git utilities that make life git easier
Christoph Matthies
 
PDF
Git real slides
Lucas Couto
 
PDF
Git_real_slides
Khanh NL-bantoilatoi
 
PPTX
Using Git as your VCS with Bioconductor
timyates
 
PPTX
Advanced Git Presentation By Swawibe
Md Swawibe Ul Alam
 
PDF
Nicola Iarocci - Git stories from the front line - Codemotion Milan 2017
Codemotion
 
PDF
Git workflows automat-it
Automat-IT
 
PDF
GIT_In_90_Minutes
vimukthirandika
 
PDF
Sacándole jugo a git
Berny Cantos
 
KEY
The everyday developer's guide to version control with Git
E Carter
 
PDF
Loading...git
Rafael García
 
PPT
Git Introduction
Gareth Hall
 
PDF
Git Concepts, Commands and Connectivity
Raja Soundaramourty
 
PDF
Git is my hero
Selena Deckelmann
 
PDF
Pro git - grasping it conceptually
seungzzang Kim
 
PDF
Now i git it!!!
Yoram Michaeli
 
PPTX
GIT in a nutshell
alignan
 
PDF
Git internals
Haggai Philip Zagury
 
Introducción a git y GitHub
Lucas Videla
 
Git Tricks — git utilities that make life git easier
Christoph Matthies
 
Git real slides
Lucas Couto
 
Git_real_slides
Khanh NL-bantoilatoi
 
Using Git as your VCS with Bioconductor
timyates
 
Advanced Git Presentation By Swawibe
Md Swawibe Ul Alam
 
Nicola Iarocci - Git stories from the front line - Codemotion Milan 2017
Codemotion
 
Git workflows automat-it
Automat-IT
 
GIT_In_90_Minutes
vimukthirandika
 
Sacándole jugo a git
Berny Cantos
 
The everyday developer's guide to version control with Git
E Carter
 
Loading...git
Rafael García
 
Git Introduction
Gareth Hall
 
Git Concepts, Commands and Connectivity
Raja Soundaramourty
 
Git is my hero
Selena Deckelmann
 
Pro git - grasping it conceptually
seungzzang Kim
 
Now i git it!!!
Yoram Michaeli
 
GIT in a nutshell
alignan
 
Git internals
Haggai Philip Zagury
 
Ad

More from Andrej Koelewijn (8)

PPTX
Divide and conquer - Component based development with Mendix
Andrej Koelewijn
 
PDF
LAC 2011 - Scrum under Architecture
Andrej Koelewijn
 
PDF
Introduction to Scrum
Andrej Koelewijn
 
PDF
More ways to collect data from users
Andrej Koelewijn
 
PDF
REST, the internet as a database?
Andrej Koelewijn
 
PDF
Opensource
Andrej Koelewijn
 
PDF
Web20 Enterprise20
Andrej Koelewijn
 
PDF
Ajax with jquery and grails
Andrej Koelewijn
 
Divide and conquer - Component based development with Mendix
Andrej Koelewijn
 
LAC 2011 - Scrum under Architecture
Andrej Koelewijn
 
Introduction to Scrum
Andrej Koelewijn
 
More ways to collect data from users
Andrej Koelewijn
 
REST, the internet as a database?
Andrej Koelewijn
 
Opensource
Andrej Koelewijn
 
Web20 Enterprise20
Andrej Koelewijn
 
Ajax with jquery and grails
Andrej Koelewijn
 
Ad

Recently uploaded (20)

PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
July Patch Tuesday
Ivanti
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 

Version Control with Git

  • 1. Versiebeheer met Git Andrej Koelewijn, IT-eye Jfall 2009, 11 november 2009
  • 4. Single point of control
  • 12. SVN Repo thuis niet beschikbaar...
  • 14. Lost Git al deze problemen op?
  • 15. Why: Linus ● Linus basically applies patches all day
  • 23. Gedistribueerd 3-way merge Snel Efficient
  • 24. $ mkdir proj $ cd proj $ git init Initialized empty Git repository in /home/akoelewijn/projects/git-demo/proj/.git/ $ vi readme.txt $ git add . $ git commit -m "Added readme" [master (root-commit) 339bb9e] Added readme 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 readme.txt $ git log commit 339bb9e5417ae66f755ca49f64a9eba61cec1e46 Author: Andrej Koelewijn <[email protected]> Date: Fri Nov 6 15:10:38 2009 +0100 Added readme $
  • 25. $ git branch * master $ git checkout -b feature1 Switched to a new branch 'feature1' $ vi HelloWorld.gr $ git add . $ git commit -m "Added hello world script" [feature1 de8e8a1] Added hello world script 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 HelloWorld.gr $ git checkout master Switched to branch 'master' $ vi readme.txt $ git commit -am "Added some text to readme" [master e5d4f53] Added some text to readme 1 files changed, 1 insertions(+), 0 deletions(-) $ git merge feature1 Merge made by recursive. HelloWorld.gr | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 HelloWorld.gr
  • 26. $ git log --pretty=oneline –graph * 9fe15c09afcf5d9c5699cc721f17905a7a0aa2e6 Merge branch 'feature1' | | * de8e8a1fd33c37257d3d9843d1844c613d576819 Added hello world script * | e5d4f530feef98ca66ef96a0fdd5efab377610fa Added some text to readme |/ * 339bb9e5417ae66f755ca49f64a9eba61cec1e46 Added readme
  • 27. $ git log --pretty=oneline –graph * 9fe15c09afcf5d9c5699cc721f17905a7a0aa2e6 Merge branch 'feature1' | | * de8e8a1fd33c37257d3d9843d1844c613d576819 Added hello world script * | e5d4f530feef98ca66ef96a0fdd5efab377610fa Added some text to readme |/ * 339bb9e5417ae66f755ca49f64a9eba61cec1e46 Added readme
  • 33. $ git log --pretty=oneline --graph * 3387f004f910bf28f0d7da3ca0e6943b780f3549 Added info to readme * 2d7effcac27a54688ea6a26fb849730ccdb8578a Added readme file $ git branch feature1 * master $ git checkout feature1 Switched to branch 'feature1' $ git log --pretty=oneline --graph * 7c5f57666847452b4b54dc7731ce0e8efd4e2ffc Added helloworld file * 2d7effcac27a54688ea6a26fb849730ccdb8578a Added readme file $ git rebase master First, rewinding head to replay your work on top of it... Applying: Added helloworld file
  • 34. $ git checkout master Switched to branch 'master' $ git merge feature1 Updating 3387f00..c51aef2 Fast forward HelloWorld.gr | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 HelloWorld.gr $ git log --pretty=oneline --graph * c51aef26645fbee96b5365caea656d9417c84a5d Added helloworld file * 3387f004f910bf28f0d7da3ca0e6943b780f3549 Added info to readme * 2d7effcac27a54688ea6a26fb849730ccdb8578a Added readme file
  • 39. Commit history = Directed graph
  • 43. $ git init Initialized empty Git repository in /home/akoelewijn/projects/git- demo/usr1/proj1/.git/ $ vi readme.txt $ git add . $ git commit -m "First commit" [master (root-commit) 8d0a113] First commit 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 readme.txt $ git clone file:///home/akoelewijn/projects/git-demo/usr1/proj1/ Initialized empty Git repository in /home/akoelewijn/projects/git- demo/usr2/proj1/.git/ remote: Counting objects: 3, done. remote: Total 3 (delta 0), reused 0 (delta 0) Receiving objects: 100% (3/3), done. $ git log commit 8d0a1131b202e9ddc34161f6b57f9e96702c6fc0 Author: Andrej Koelewijn <[email protected]> Date: Sun Nov 8 13:39:57 2009 +0100 First commit
  • 44. $ vi HelloWorld.gr $ git add HelloWorld.gr $ git commit -m "Added hello world script" [master b8c72a9] Added hello world script 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 HelloWorld.gr $ git pull remote: Counting objects: 4, done. remote: Compressing objects: 100% (2/2), done. remote: Total 3 (delta 0), reused 0 (delta 0) Unpacking objects: 100% (3/3), done. From file:///home/akoelewijn/projects/git-demo/usr1/proj1 8d0a113..b8c72a9 master -> origin/master Updating 8d0a113..b8c72a9 Fast forward HelloWorld.gr | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 HelloWorld.gr $ $ git log --pretty=oneline --graph * b8c72a91edc1f19578dd48c18e02c2025a8dd681 Added hello world script * 8d0a1131b202e9ddc34161f6b57f9e96702c6fc0 First commit
  • 46. .git/config: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = file:///home/akoelewijn/projects/git-demo/usr1/proj1/ [branch "master"] remote = origin merge = refs/heads/master
  • 57. $ git svn clone file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1/ Initialized empty Git repository in /home/akoelewijn/projects/git- demo/repo1/.git/ A trunk/proj1/readme.txt W: +empty_dir: branches W: +empty_dir: tags r1 = bf4e7734d6c9669a07bfbf05aa95e4033946e572 (git-svn) M trunk/proj1/readme.txt r2 = 7bee0ad4161eb4af856445f618687221e41e4c54 (git-svn) Checked out HEAD: file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1 r2 $ cd repo1 $ vi trunk/proj1/readme.txt $ git add . $ git commit -m "A change from git" [master c1866ef] A change from git 1 files changed, 1 insertions(+), 0 deletions(-) $ git svn rebase Current branch master is up to date. $ git svn dcommit Committing to file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1 ... M trunk/proj1/readme.txt Committed r3 M trunk/proj1/readme.txt r3 = b636e7fac235e2c0a60995c63aae17f23f3b31a7 (git-svn) No changes between current HEAD and refs/remotes/git-svn Resetting to the latest refs/remotes/git-svn
  • 58. $ git svn log ------------------------------------------------------------------------ r3 | akoelewijn | 2009-11-08 21:15:37 +0100 (Sun, 08 Nov 2009) | 2 lines A change from git ------------------------------------------------------------------------ r2 | akoelewijn | 2009-09-24 13:00:08 +0200 (Thu, 24 Sep 2009) | 2 lines First changes ------------------------------------------------------------------------ r1 | akoelewijn | 2009-09-24 12:38:16 +0200 (Thu, 24 Sep 2009) | 2 lines Initial import
  • 59. $ git log commit b636e7fac235e2c0a60995c63aae17f23f3b31a7 Author: akoelewijn <akoelewijn@be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3> Date: Sun Nov 8 20:15:37 2009 +0000 A change from git git-svn-id: file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1@3 be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3 commit 7bee0ad4161eb4af856445f618687221e41e4c54 Author: akoelewijn <akoelewijn@be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3> Date: Thu Sep 24 11:00:08 2009 +0000 First changes git-svn-id: file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1@2 be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3 commit bf4e7734d6c9669a07bfbf05aa95e4033946e572 Author: akoelewijn <akoelewijn@be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3> Date: Thu Sep 24 10:38:16 2009 +0000 Initial import git-svn-id: file:///home/akoelewijn/projects/svngit-demo1/svn.repo/repo1@1 be08ebd2-3bba-4eed-b74f-8e2b0cfc31d3
  • 61. Lost Git al deze problemen op?
  • 64. SVN Repo thuis niet beschikbaar...
  • 71. Nadeel – clonen svn repo traag
  • 72. Betere tool dan SVN ● Git een goede aanvulling op SVN ● Gedistribueerd werken nuttig voor ● multi-team development Goede tool voor integratie ● managers
  • 73. http://www.it-eye.nl/ [email protected] http://www.andrejkoelewijn.com/