https://github.com/pcaversaccio/test-spoof-commit-date
Git commit date spoofing.
https://github.com/pcaversaccio/test-spoof-commit-date
git spoofing
Last synced: about 2 hours ago
JSON representation
Git commit date spoofing.
- Host: GitHub
- URL: https://github.com/pcaversaccio/test-spoof-commit-date
- Owner: pcaversaccio
- Created: 2026-04-10T08:14:29.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-06-17T11:46:32.000Z (8 days ago)
- Last Synced: 2026-06-17T13:25:46.278Z (8 days ago)
- Topics: git, spoofing
- Homepage:
- Size: 3.91 KB
- Stars: 7
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git Commit Date Spoofing
Git allows _full_ control over "author date" ([`GIT_AUTHOR_DATE`](https://git-scm.com/docs/git-commit#_commit_information)) and "committer date" ([`GIT_COMMITTER_DATE`](https://git-scm.com/docs/git-commit#_commit_information)). These values can be set _arbitrarily_ when creating commits.
## Linux/macOS (bash/zsh)
```sh
~$ GIT_AUTHOR_DATE="2019-07-08T13:21:24Z" \
GIT_COMMITTER_DATE="2019-07-08T13:21:24Z" \
git commit -m "changed dependency"
```
## Windows PowerShell
```powershell
~$ $env:GIT_AUTHOR_DATE="2019-07-08T13:21:24Z"
~$ $env:GIT_COMMITTER_DATE="2019-07-08T13:21:24Z"
~$ git commit -m "changed dependency"
```
## Example
Let's inspect commit [`3e8db9983cffafb5342ae752fbee4af89dd3efa9`](https://github.com/pcaversaccio/test-spoof-commit-date/commit/3e8db9983cffafb5342ae752fbee4af89dd3efa9):
```sh
curl -s https://api.github.com/repos/pcaversaccio/test-spoof-commit-date/commits/3e8db9983cffafb5342ae752fbee4af89dd3efa9 | jq '.commit | {author_date: .author.date, committer_date: .committer.date}'
```
which returns:
```json
{
"author_date": "2019-07-08T13:21:24Z",
"committer_date": "2019-07-08T13:21:24Z"
}
```
The commit was actually pushed at 2026-04-10T09:11:50Z.