About git-thought [was: brisbane: initial cut at a mergeline cache]
Pieter de Bie
frimmirf at gmail.com
Thu Apr 2 20:14:04 BST 2009
On Thu, Apr 2, 2009 at 7:08 PM, Stephen J. Turnbull <stephen at xemacs.org> wrote:
> # edit, decide I'm not satisfied, save the file
>
> git commit -a -m "Nyet."
> git branch versionA # I'm still on the trunk, but my work is safe
> # I know where to find it, in branch versionA
> git reset --hard master^ # "erase the blackboard"
>
> # mung until no good
>
> Of course, the initial checkout is usually implicit, and I have a
> command defined in XEmacs so that the commit-branch-reset operation
> takes 3 keystrokes, plus typing the name of the new branch. The time
> taken is the same as it takes to save the file, ie, imperceptibly
> short.
>
> I don't know what you think, but I think this is a decidedly weird
> workflow that no sane person would come up with.<wink> But ... I did,
> I like it, and git lets me do it. Easily, safely, and quickly.
You're not the only one, I do that a lot too and I bet others do too.
More information about the bazaar
mailing list