
- disabled git reset --hard - improved lno to conditionally use newlines - get git-dir appropriately
3 lines
141 B
Bash
Executable file
3 lines
141 B
Bash
Executable file
#!/bin/sh
|
|
# Save HEAD commit hash to "snap" file in git dir
|
|
echo Snapped $(git rev-parse HEAD | tee "$(git rev-parse --git-dir)/${1:-snap}")
|