[Gllug] Mercurial or Subversion for single user?
Nix
nix at esperi.org.uk
Wed Mar 24 00:50:36 UTC 2010
On 23 Mar 2010, Richard Jones verbalised:
> Run a mile from Subversion.
Run *screaming* from CVS.
I'm scared whenever I do a commit in CVS (a thankfully rare event) and
actually had nightmares about doing large branches in it, because if you
do anything wrong (and it's so *easy* to do things wrong with branches)
you're utterly screwed: you have to hand-edit the repository files, or
restore from a backup, to get back to where you came from. With git,
reversing a mistaken *anything* is one command away:
git checkout '@{1 hour ago}'
to get back to an earlier location, or
git reset --hard 'HEAD^'
or, perhaps
git reset --hard 'HEAD^{4}' (or some other number)
to make a clapped-out commit (or series of them) vanish. (As long as you
haven't pushed them to other people, that is. Once you've done that, you
have to live with your mistakes in the history and just 'git revert'
them.)
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list