8
DISTRIBUTED VCS BASICS Victor Haydin Eleks Software Ltd. Hg

Distributed vcs basics + hg

Embed Size (px)

Citation preview

Page 1: Distributed vcs basics + hg

DISTRIBUTED VCS BASICSVictor Haydin

Eleks Software Ltd.

Hg

Page 2: Distributed vcs basics + hg

Centralized VCS (SVN, VSS etc.)

Page 3: Distributed vcs basics + hg

Distributed VCS (Hg, Git etc.)

Page 4: Distributed vcs basics + hg

SVN vs. Hg

•Local WD <-> Remote Rep.

•Linear History

•Painful folder-based branching

•Revisions

•One repository for all projects

•Local WD <-> Local Rep. <-> Remote Rep.

•DAG History

•Easy built-in branching

•Changesets

•One repository per project

Page 5: Distributed vcs basics + hg

Working with local repository

Init

Commit

Update

Revert

Page 6: Distributed vcs basics + hg

Working with remote repository

Clone

Pull

Push

Merge

Page 7: Distributed vcs basics + hg

Other commands/features

Rollback

Backout

Rename

.orig files

.hgignore

Named branches

Local branches

Tags

Page 8: Distributed vcs basics + hg

Q&Ahginit.com

hgbook.red-bean.com