Metadata-Version: 2.4
Name: gitcli-automation
Version: 2.0.0
Summary: User-friendly command-line tool for Git that simplifies everyday operations. Perfect for developers who want powerful Git functionality without the complexity.
Home-page: https://github.com/Adelodunpeter25/GitCLI
Author: Adelodunpeter
Author-email: Adelodun Peter <adelodunpeter24@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/Adelodunpeter25/GitCLI
Project-URL: Bug Reports, https://github.com/Adelodunpeter25/issues
Project-URL: Source, https://github.com/Adelodunpeter25/GitCLI
Keywords: git,cli,automation,tool,interactive,version-control
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Version Control :: Git
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: colorama>=0.4.6
Requires-Dist: yaspin>=2.3.0
Provides-Extra: windows
Requires-Dist: win10toast>=0.9; extra == "windows"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# GitCLI - Git Operations Automation

GitCLI is a user-friendly command-line tool for Git that simplifies everyday operations. Perfect for developers who want powerful Git functionality without the complexity.

## Features

- 🚀 **Smart Save** - `gitcli save` handles everything with intelligent defaults
- 🤖 **Smart Commit Messages** - Learns from your history and suggests messages
- 🛡️ **Pre-save Validation** - Detects debug code, secrets, conflicts, and large files
- 🔄 **Auto-pull Before Push** - Prevents conflicts automatically
- ⚙️ **Fully Configurable** - Customize every behavior to match your style
- 🪝 **Git Hooks Management** - Built-in templates for linting, testing, formatting
- 🔧 **Conflict Resolution** - Interactive helper for merge conflicts
- �️ **Crosss-platform** - macOS, Linux, Windows

## Installation

### Quick Install (Recommended)

**One-line installer:**
```bash
curl -sSL https://raw.githubusercontent.com/Adelodunpeter25/GitCLI/main/install.sh | bash
```

### Alternative Methods

**Using pipx (recommended for Python users):**
```bash
pipx install gitcli-automation
```

**Using pip:**
```bash
pip install gitcli-automation
```

**From source:**
```bash
git clone https://github.com/Adelodunpeter25/GitCLI.git
cd GitCLI
pip install -e .
```

### Uninstall

```bash
curl -sSL https://raw.githubusercontent.com/Adelodunpeter25/GitCLI/main/uninstall.sh | bash
```

## Quick Start

```bash
# Make changes, then save everything
gitcli save

# Or with custom message
gitcli save "fix: resolve login bug"

# Configure behavior
gitcli config

# Interactive mode
gitcli
```

## Key Commands

**Smart Commands:**
- `save` / `save <message>` - Stage, commit, push with smart defaults
- `config` - Configure behavior

**Core:** `commit`, `push`, `pull`, `sync`, `status`, `log`, `diff`, `stage`, `qp`

**Branches:** `switch-branch`, `add-branch`, `delete-branch`, `list-branch`

**Stash:** `stash`, `stash-pop`, `stash-apply`, `stash-list`

**Advanced:** `hooks`, `resolve-conflicts`, `amend`, `reset`, `remotes`

Type `gitcli help` for full list.


## Examples

```bash
# Daily workflow
gitcli save                              # Smart save with auto-message
gitcli save "feat: add authentication"   # Custom message

# Branch workflow
gitcli add-branch feature-x
gitcli save
gitcli switch-branch main

# Stash workflow
gitcli stash
gitcli switch-branch main
gitcli stash-pop

# Hooks
gitcli hooks              # Setup automation
gitcli list-hooks         # View active hooks
```

## Requirements

- Python 3.7+
- Git installed and configured

## Git Hooks

Built-in templates for automation:
- **Pre-commit:** Linting, formatting, tests, debug detection
- **Pre-push:** Full tests, branch protection, build verification
- **Commit-msg:** Conventional commits, message validation
- **Post-commit:** Notifications, auto-backup

```bash
gitcli hooks       # Setup
gitcli list-hooks  # View active
```

## Configuration

Run `gitcli config` to customize behavior:

- **auto_stage** - Auto-stage all changes (default: true)
- **auto_push** - Prompt to push after commit (default: true)
- **learn_from_history** - Smart commit messages (default: true)
- **pre_save_validation** - Validate before commit (default: true)
- **auto_pull_before_push** - Sync before push (default: true)
- **auto_fix_formatting** - Run formatters (default: false)
- **confirm_force_push** - Confirm force push (default: true)

**Validation rules:** Detects debug code, secrets, conflicts, large files (configurable)

Config stored in `.gitcli-config.json`



## License

MIT License - see [LICENSE](LICENSE) file for details.

## Author

Adelodunpeter - [GitHub](https://github.com/Adelodunpeter25)
