git-reset-scripton commit (revert local fix) (200e7fb)
   1#!/bin/sh
   2. git-sh-setup-script || die "Not a git archive"
   3rev=$(git-rev-parse --revs-only --verify --default HEAD "$@") || exit
   4rev=$(git-rev-parse --revs-only --verify $rev^0) || exit
   5git-read-tree --reset "$rev" && echo "$rev" > "$GIT_DIR/HEAD"
   6git-update-cache --refresh
   7rm -f "$GIT_DIR/MERGE_HEAD"