dotfiles/.local/bin/scripts/gdt
2024-07-20 01:39:49 +03:00

14 lines
259 B
Bash
Executable file

#!/bin/bash
if [ ! -d .git ]; then
echo "missing .git dir!"
exit 1
fi
echo "Last commit: $(git log | grep 'Date' | cut -d ' ' -f 4- | head -1)"
read -r -p "Date: " date
export GIT_AUTHOR_DATE="${date}"
export GIT_COMMITTER_DATE="${date}"
git "$@"