Add commit with specific date

This commit is contained in:
James Skemp 2023-10-07 21:16:00 -05:00
parent eb833fe21a
commit 5b1d3880fb
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ git commit -m "Summary" -m "Details." -m "Another line/paragraph of details."
# Add all changed files and commit. New files are not committed.
git commit -am "Message"
# Commit with a date override.
git commit -m "Initial back-dated commit" --date="20050703T07:18"
# View the overridden author date and actual commit date.
git show --format=fuller
```
## More commit viewing