bin/git-restore
2010-08-10 10:42:43 -07:00

4 lines
91 B
Bash
Executable file

#!/bin/sh
FILENAME="$1"
git checkout $(git rev-list -n1 HEAD -- "$FILENAME")^ "$FILENAME"