Change git date
Tue, 02 July 2019
git_date.sh
#!/usr/bin/env bash echo "$1 days ago" new_date=$(date -j -v-${1}d) echo $new_date GIT_COMMITTER_DATE="${new_date}" git commit --amend --date="${new_date}"
alternative.sh
git add . git commit --date='<YYYY-MM-DD HH:MM:SS>' -m "My commit message"