Skip to main content

A tool to manage Git branches across repositories.

Project description

Git Branch Manager

Description

git-branch-manager is a Python package that automates the process of managing Git repositories. It allows you to search for Git repositories in a specified directory and delete specified branches locally and/or remotely.

Features

  • Automatically search for Git repositories under a specified base directory.
  • Delete specified branches locally.
  • Optionally delete branches from remote repositories.

Installation

Install the package using pip:

pip install git-branch-manager

Usage

Run the command in your terminal as follows:

git-branch-manager <basedirectory> <branches> [--remote]

Arguments:

  • <basedirectory>: The base directory to search for Git repositories.
  • <branches>: Comma-separated list of branches to delete.
  • --remote: Optional. Include this flag to delete branches from remote repositories.

Example:

To delete branches feature1 and feature2 locally and remotely under the /my/projects directory:

git-branch-manager /my/projects feature1,feature2 --remote

Contributing

Contributions are welcome! Please fork this repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Dhruba Dahal

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_branch_manager-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

git_branch_manager-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file git_branch_manager-0.1.0.tar.gz.

File metadata

  • Download URL: git_branch_manager-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.7

File hashes

Hashes for git_branch_manager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0956ef401c4164d81bd043ccf97b3d244c67007679d152bb87b57629d3d77e0a
MD5 cef31429e4e9febbf5fdab528e9dc3c7
BLAKE2b-256 5fa101c113712f909751ec8b0e92d6a510e63859c1e5a794fcf5d028f1795581

See more details on using hashes here.

File details

Details for the file git_branch_manager-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for git_branch_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b328530785a3f9e28a031915c9253b5becbdc484ac87503b8c8af59a9fd044e
MD5 05462828b88cd12ca16b7680db6baee1
BLAKE2b-256 4e52a62feafe13daa11aa79ba8e5f4bbf7375f124a6d418d6548cf3b7f695532

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