Skip to main content

Flatten entire git history to a single commit

Project description

git-squash

Flatten entire git history to a single commit.

Install

pip install git-squash

Usage

git-squash                          # squash current repo
git-squash /path/to/repo            # squash specific repo
git-squash -m "Initial commit"      # custom message
git-squash -b main                  # target branch
git-squash -B e5f1a3b               # squash commits since e5f1a3b
git-squash -B e5f1a3b -m "cleanup"  # squash since a commit with custom message

Warning: Rewrites git history. Don't use this tool unless you like it for some reason.

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

git_squash-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

git_squash-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file git_squash-0.1.1.tar.gz.

File metadata

  • Download URL: git_squash-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for git_squash-0.1.1.tar.gz
Algorithm Hash digest
SHA256 64bc74a17eb685843fe8b62675ffcec525c035aa4c848170eb92cd6d2dbfbc34
MD5 1ea295d7093d635beca420534f394902
BLAKE2b-256 7209ca0661bea3f7a95557e2b0e22b7bf9836e3d34bb1fbaa4cb07dcd154c3d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for git_squash-0.1.1.tar.gz:

Publisher: publish.yml on tylerhenthorn/git-squash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file git_squash-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: git_squash-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for git_squash-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0bb92958222cdf8b592aab2166327ebeb758d16e765be067658c82086a79fd67
MD5 8c0cb8b0c1ecc392d816c8d8db9a08a2
BLAKE2b-256 f0bb07c31b691a203cb86224b1944e4816e1d7ffb101667d01f5827595594f58

See more details on using hashes here.

Provenance

The following attestation bundles were made for git_squash-0.1.1-py3-none-any.whl:

Publisher: publish.yml on tylerhenthorn/git-squash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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