dotfiles/.local/bin/scripts/git-snap-restore

4 lines
118 B
Plaintext
Raw Normal View History

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