dotfiles/.local/bin/git-snap-restore
xerus2000 e2faef48d6 config/git: move branching aliases to bins and update logging
- disabled git reset --hard
- improved lno to conditionally use newlines
- get git-dir appropriately
2020-11-14 02:05:51 +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}")