scratch/output/Scratch/en/blog/2009-12-14-Git-vs--Bzr/code/gitconfig
Yann Esposito 70314df976 Recompiled
2012-05-02 17:43:56 +02:00

2 lines
204 B
Text

[alias]
uncommit = !zsh -c '"if (($0)); then nb=$(( $0 - 1 )); else nb=0; fi; i=0; while ((i<=nb)); do git revert -n --no-edit HEAD~$i; ((i++)); done; git commit -m \"revert to $0 version(s) back\""'