ControlGit
ControlGit is a lightweight Git account and repository settings management tool. It's a subset of SmartGit focused on controlling Git configuration without deployment capabilities.
Features
- Account Settings: Manage global Git user configuration
- Repository Settings: Manage repository-specific Git configuration
- Remote Management: Add, remove, and update Git remotes
- GitHub Authentication: Store and manage GitHub credentials
- GitHub CLI Integration: Optional integration with GitHub CLI
Installation
pip install pypi-controlgit
Quick Start
Account Management
# Show global Git configuration
controlgit account config
# Set user name
controlgit account name "Your Name"
# Set user email
controlgit account email "your.email@example.com"
# Set custom configuration
controlgit account set core.editor "vim"
Repository Management
# Show repository configuration
controlgit repo config my-repo
# Set repository configuration
controlgit repo set my-repo core.ignorecase true
# List remotes
controlgit repo remotes my-repo
# Add remote
controlgit repo add-remote my-repo origin https://github.com/user/repo.git
# Remove remote
controlgit repo remove-remote my-repo origin
# Update remote URL
controlgit repo set-remote-url my-repo origin https://github.com/user/new-repo.git
GitHub Authentication
# Set credentials manually
controlgit auth set username token --2fa 123456
# Use GitHub CLI for interactive login
controlgit auth set
# Check authentication status
controlgit auth status
# Clear credentials
controlgit auth clear
Commands
auth
auth set [username] [password]- Set GitHub credentialsauth status- Show authentication statusauth clear- Clear stored credentials
account
account config- Show global Git configurationaccount set <key> <value>- Set global Git configurationaccount name <name>- Set global user nameaccount email <email>- Set global user email
repo
repo config <name>- Show repository configurationrepo set <name> <key> <value>- Set repository configurationrepo remotes <name>- List repository remotesrepo add-remote <name> <remote-name> <url>- Add remoterepo remove-remote <name> <remote-name>- Remove remoterepo set-remote-url <name> <remote-name> <url>- Update remote URL
Options
--path <path>- Working directory (default: current directory)--github-user <username>- GitHub username (default: abucodingai)
Requirements
- Python 3.8+
- Git 2.0+
- GitHub CLI (gh) 2.0+ (optional, for interactive login)
License
MIT License
Author
Abu Shariff (abu.shariffaiml@gmail.com)
System Requirements
This package requires the following system tools to be installed:
-
Git: Version 2.0 or higher
- Windows: https://git-scm.com/download/win
- macOS:
brew install git - Linux:
apt-get install gitoryum install git
-
GitHub CLI (gh): Version 2.0 or higher
- Windows:
choco install ghor download from https://cli.github.com - macOS:
brew install gh - Linux: https://cli.github.com/manual/installation
- Windows:
After installation, authenticate with GitHub:
gh auth login
Metadata
Release files for pypi-controlgit 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pypi_controlgit-1.4.0.tar.gz | 14.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypi_controlgit-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.1 kB
Release files / pypi_controlgit-1.4.0.tar.gz
| Download URL | pypi_controlgit-1.4.0.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04757cc6221cb661e81066ac0dda91a232edf70d92de607ef6267c05869d1bb1
|
|
BLAKE2b-256 checksum How to use checksums |
8a5424ab81740f60412286091e21b3d8369f83dcdf7ee555e19a4f6dd32e542b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / pypi_controlgit-1.4.0-py3-none-any.whl
| Download URL | pypi_controlgit-1.4.0-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e401ecfd1e3aaecc972caae628c3ab6d77e1474e863577d48e03560dffae2219
|
|
BLAKE2b-256 checksum How to use checksums |
9193aa263880ac112f86b029e288938719977a4f1be94bdb49f8663c78b566b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for pypi-controlgit 1.4.0
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.