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

Git, Mercurial und Bazaar im Vergleich

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Git, Mercurial und Bazaar im Vergleich

Slides zu meinem Vortrag auf der Continuous Lifecycle 2013. http://2013.continuouslifecycle.de/lecture.php?id=3280

Avatar for Simon Olofsson

Simon Olofsson

November 11, 2013
Tweet

More Decks by Simon Olofsson

Other Decks in Technology

Transcript

  1. Quelle: http://bit.ly/1glqLIU Gerrit Entwickler 2 Entwickler 1 Reviewer CI Build

    Server Haupt- Repository Pending Changes Pull Pull Pull Push Push Pull Submit Approve
  2. % bzr bind bzr://example.com/repo ! % bzr ci -m 'Initial

    commit.’ ! % bzr ci --local -m 'More Work.’ ! % bzr unbind
  3. % hg bookmarks * my-bookmark 2:815e1cb57cd9 ! % hg branches

    my-branch 2:815e1cb57cd9 default 0:66504c7da0dd (inactive) ! % hg tags tip 2:815e1cb57cd9 my-tag 1:68a62afbf250
  4. % git status --short M meine_datei.txt ! % git add

    meine_datei.txt ! % git status --short M meine_datei.txt ! % git reset HEAD meine_datei.txt Unstaged changes after reset: M meine_datei.txt
  5. % git rebase --onto 9890134 a59f538 ! % git log

    --oneline dd55b8a More Work. 9890134 Initial Commit. ! % git reflog […] a59f538 HEAD@{3}: commit: Add DB Password. […]
  6. % hg cp 1 2 ! % cp 1 3

    ! % hg status -C A 2 1 A 3
  7. % cp 1 2 ! % git add 2 !

    % git diff --cached -C -C similarity index 100% copy from 1 copy to 2
  8. Vielen Dank! Simon Olofsson • Content Management AG @solofs •

    [email protected] Die Logos wurden den Webseiten der jeweiligen Projekte entnommen.