ControlGit - Git account and repository settings management
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypi_controlgit-1.0.0.tar.gz.
File metadata
- Download URL: pypi_controlgit-1.0.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c090344c5d70344761679b877eb1d58cf033913cc392f101bedf34023098b533
|
|
| MD5 |
61957deed16cc1d1ba33bab716333601
|
|
| BLAKE2b-256 |
ec5da74b1cb475a1617b0c7e893ac76e32a92b6a127053f1aa6b80d0e1d2d78c
|
File details
Details for the file pypi_controlgit-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pypi_controlgit-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3ff78056d9f21d3e437adf6418536e126fa9ff48da85c3d406ba45f0c460621
|
|
| MD5 |
fde1f892a0c03c08cde645e8b8227fb5
|
|
| BLAKE2b-256 |
98783c19bb434fd4e1d8d48b428b1e2a0772d82cba14bd40b2342f7be5a76ffe
|