Skip to main content

fake-commit

生成假 git 提交历史的 CLI 工具,让你的提交记录看起来更真实。

功能特点

  • 支持指定日期范围生成提交
  • 支持固定提交次数模式
  • 支持随机提交次数模式
  • 每次提交使用随机时间戳,更真实
  • 零依赖配置,即装即用

安装

推荐使用 uv 安装:

uv tool install fake-commit

或直接从源码安装:

git clone https://github.com/esyion/fake-commit.git
cd fake-commit
uv tool install .

卸载

uv tool uninstall fake-commit

配置

复制 .env.example 为 .env,配置以下环境变量:

必需配置

环境变量 说明
FAKE_AUTHOR_NAME Git 提交用户名
FAKE_AUTHOR_EMAIL Git 提交邮箱

可选配置

环境变量 默认值 说明
FAKE_START_DATE 2026-01-01 开始日期
FAKE_END_DATE 2026-01-31 结束日期
FAKE_BRANCH main 分支名
FAKE_COMMITS_PER_DAY 1 每天提交次数(固定模式)
FAKE_RANDOM false 是否启用随机模式
FAKE_RANDOM_RANGE 1,10 随机提交区间(格式:min,max)

使用方法

固定模式

每天固定生成指定次数提交:

FAKE_RANDOM=false
FAKE_COMMITS_PER_DAY=3

随机模式

每天随机生成 1~10 次提交:

FAKE_RANDOM=true
FAKE_RANDOM_RANGE=1,10

运行

python -m src.main

或安装后:

fcmt -n "用户名" -e "email@example.com"

示例输出

开始生成提交历史...
作者: esyion <qingboup@gmail.com>
日期范围: 2026-01-01 - 2026-01-31
完成!共生成 93 次提交

注意事项

  • 生成提交会创建 .commit_marker 文件作为提交内容
  • 每次提交使用当天随机时间戳(小时:分钟:秒)
  • 建议在测试仓库中使用

License

MIT

Metadata

Release files for fake-commit 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fake-commit 0.1.3
File Size Uploaded Provenance Actions
fake_commit-0.1.3.tar.gz 45.5 kB Without provenance Details for fake_commit-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fake-commit 0.1.3
File Interpreter ABI Platform Actions
fake_commit-0.1.3-py3-none-any.whl Python 3 none any Details for fake_commit-0.1.3-py3-none-any.whl

Total release size: 53.4 kB

Release files / fake_commit-0.1.3.tar.gz

Download URL fake_commit-0.1.3.tar.gz
Size 45.5 kB
Tags Source
SHA-256 checksum
How to use checksums
98b1dececa94f820ea3acb61dd3bd67d433ec747d704da7ab4ccda702feaed45
BLAKE2b-256 checksum
How to use checksums
23f5f33a5c449c1c62ae43b8aac11bde5e838fb9e60848b6672434daae86b32e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fake_commit-0.1.3-py3-none-any.whl

Download URL fake_commit-0.1.3-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
689243300c09829f141e9621607f95526cff1315efebc1122b63c6481120b9ed
BLAKE2b-256 checksum
How to use checksums
477616622accc0fce9de982408b4c0e3c9b9ee83f3accaa58681ca76df4348e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fake-commit 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page