dotfiles/.local/bin/scripts/git-snap-restore
2021-01-23 19:55:22 +01:00

3 lines
117 B
Bash
Executable file

#!/bin/sh
# Hard reset HEAD to commit in "snap"-file
git reset --keep $(cat "$(git rev-parse --git-dir)/${1:-snap}")