- **Epistemic status:** #budding
Changing the date of a commit in [[Git]] is quite simple.
## On a commit
```shell
git commit --date='Mon Jan 10 1:34:33 2022 -0400' -m "project init"
```
## After commit
```shell
git commit --amend --date='Mon Jan 10 1:34:33 2022 -0400'
```
---
## References
- GitHub Docs. “Changing a Commit Message.” Accessed January 24, 2022. <https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message>.
- “Git - Git-Commit Documentation.” Accessed October 26, 2021. <https://git-scm.com/docs/git-commit>.
- Razavi, Mahdi. “How Do I Make a Git Commit in the Past?” _1Developer_ (blog), June 5, 2019. <https://medium.com/1developer/how-do-i-make-a-git-commit-in-the-past-c832c1d1362a>.
- Stack Overflow. “Update Git Commit Author Date When Amending.” Accessed January 24, 2022. <https://stackoverflow.com/questions/9110310/update-git-commit-author-date-when-amending>.