Tips & Tricks
Change the Date of a Commit (Author and Committer)
Change the Date of the Last Commit
DATE="YYYY-MM-DD HH:MM:SS"
GIT_AUTHOR_DATE="$DATE" GIT_COMMITTER_DATE="$DATE" git commit --amend --date="$DATE" --no-edit$DATE="YYYY-MM-DD HH:MM:SS"
$env:GIT_AUTHOR_DATE=$DATE
$env:GIT_COMMITTER_DATE=$DATE
git commit --amend --date="$DATE" --no-editChange the Date of older commits
git rebase -i HEAD~Xgit rebase --continuegit push --force-with-lease origin branch-name
Push commits in multiple times
Renaming branches
Deleting branch
Set upstream
Last updated