Skip to main content

Shift git commit timestamps out of work hours so your side project stays secret

Project description

secretside

Shift git commit timestamps out of work hours so your side project stays secret.

If you committed at 10:47 on a Wednesday, secretside moves it to 17:47 (or later). It also catches identity leaks — commits made with your real name or work email when you meant to use a pseudonym.

Install

pip install secretside

Or with uv:

uv tool install secretside

Note: libgit2 1.9 headers are required.

Quick start

secretside init
secretside clean --dry-run
secretside check # quick validate for use in a git hook

Commands

secretside init [repo] [--country XX] [--force] — Generate secretside.toml with jittered defaults so every project's config looks slightly different.

secretside clean [repo] [--dry-run] — Preview and apply timestamp shifts. Only touches your most recent contiguous commits. With local_only = true in your config (the default), only unpushed commits are considered/modified.

secretside inspect [repo] — Show commit time distribution and list all work-hour commits.

secretside check [repo] — Validate that no commits fall in work hours and no banned identities appear. Designed for CI or pre-push hooks.

Config

secretside init creates a secretside.toml in your repo:

holidays = "CA"
work_days = "mon-fri"
work_hours = "08:47..17:52"
night_hours = "23:12..05:44"
local_only = true
banned = [
    # ["Your Real Name", "real@email.com"],
    # ["Your Real Name", "work@company.com"],
]
pto = [
    # "2025-02-07",
    # "2025-12-24..2025-12-31",
]
Key Description
holidays Country code for public holidays ("CA", "US", "GB", etc.)
work_days Which days are work days ("mon-fri", "mon-thu", "mon-wed,fri")
work_hours Commits in this range on work days get shifted past work_end
night_hours Shifted commits avoid landing here (organic night commits are left alone)
local_only Only shift commits that haven't been pushed to any remote
banned Name/email pairs to flag in check — keep your real identity out of the repo
pto Dates (or start..end ranges) to treat as days off

How it works

  • Only the contiguous tail of your commits is touched — other people's commits are never modified
  • Weekend, holiday, and PTO commits are left alone — already safe - unless they need shifting due to overflow from a work day
  • Organic night commits (you actually coded at 1am) stay put
  • Chronological order is always preserved, with original time gaps maintained where possible
  • History rewriting uses git-filter-repo under the hood

Development

Requires Python 3.11+ and uv.

uv sync
bin/test
uv run secretside <command>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secretside-0.2.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secretside-0.2.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file secretside-0.2.0.tar.gz.

File metadata

  • Download URL: secretside-0.2.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Void","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for secretside-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9c9139114f9b1d662c541e46775641f2b4ac7d884b2a08964b1590772f09afeb
MD5 7e8711c86dec032b9b6f55888ba5e5fb
BLAKE2b-256 e863c8f836d98e228a967f285dfc6d28591167ebf16c0c6ae1846191c49b9017

See more details on using hashes here.

File details

Details for the file secretside-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: secretside-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Void","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for secretside-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ca6ee55dec84015e00e346f26f5d4f501d676707617d609b8fb1eec7deafdf4
MD5 b62d124bef90f255908a5448d84c273b
BLAKE2b-256 c7f46f247da7528f25ea2585d65d0e9d4595b135cf7a72f1e1808389014f157b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page