Skip to main content

Tool for cleaning old git branches.

Project description

Git clean project.

Tool for removing old data from git repository.

Installation.

sudo -H python3 -m pip3 install -U git-clean

Usage.

  • Removing remote old branches:
    clean-git --url=ssh://git@git.example.com/example.git
    
  • Removing remote and local branches:
    clean-git --dirpath=/path/to/git/repo/root
    
  • Removing remote and local branches, which last commit age is higher, than 360 days only.
    clean-git --dirpath=/path/to/git/repo/root --over-days=360
    
  • Removing remote and local branches, which name is not "test".
    clean-git --dirpath=/path/to/git/repo/root --exclude-dirpath="^master|test$"
    

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

git_clean-0.1.0b1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file git_clean-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: git_clean-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.9.3 Linux/5.11.0-37-generic

File hashes

Hashes for git_clean-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 caa868110082eae021f3b0303e2080060a1ee17be61c07fdae859211b14c6826
MD5 d1c9b33a68e7798f7056ae38ebea416c
BLAKE2b-256 6a101bf4c748a4a132c289b5697ef0d405205e386db3198e1968d744b3d64a97

See more details on using hashes here.

Supported by

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