Amend

amend

Amend author

If you want to change the author details of the commit message, you can do it using flag --amend

git commit --amend --author="Kautilya <kautilya@email.com>"
git commit --amend --author="Kautilya <kautilya.save@product_name.com>"

Tower author change

SO | change commit for one commit

Change Timestamp

This only works for the last commit in the git history tree.

git commit --amend --date=now

git commit --amend --no-edit --date=now

git commit --amend --no-edit --date "2001-09-11T12:14:00-00:00"

SO change-the-timestamp-of-an-old-commit
Git Commit Date with alias

Going with Environment variable way to trick git into committing the date time on its amend operation

GIT_COMMITTER_DATE=<date> git commit --amend --no-edit --date <date>

rebasing and amending commit date

Empty Commit

Sometimes we want to not commit anything and just need some change set in order to trigger a build on CI or Github Actions.

git commit --allow-empty -m "bump for CI"
git push 

Cherry Pick

Cherry picking git commits

git cherry-pick `git_hash`
git cherry-pick 03d6929

Sometimes if the commit is present already with its changes it will present this message.

nothing to commit, working tree clean
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:

git commit --allow-empty

Otherwise, please use 'git cherry-pick --skip'

References

Git cherry pick Man page

Github Desktop cherry Pick guide

Atlassian | cherry pick