About git-thought

Matthieu Moy Matthieu.Moy at imag.fr
Thu Apr 2 22:22:15 BST 2009


"Stephen J. Turnbull" <stephen at xemacs.org> writes:

> 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"

which is actually almost the same as "git stash" (it won't save it in
a branch, but in the reflog for the current branch) if you want a
shorter command without hacking Emacs's shortcuts ;-).

(my 2 cents)

-- 
Matthieu



More information about the bazaar mailing list