Skip to main content

⚡ Supercharge your Git workflow with short, powerful commands

Project description

git-chalak

chalak (चालाक) — clever, smart, sharp

PyPI version Python License: MIT PRs Welcome

Stop typing three commands every time you push code. git-chalak collapses your entire Git workflow into short, memorable commands — built for developers who push code multiple times a day.

# Instead of this every single time:
git add .
git commit -m "fix login bug"
git push

# Just type this:
gc acp "fix login bug"

Preview

$ gc acp "add dark mode support"

📦 Staging all changes...
💬 Committing with message: "add dark mode support"
🚀 Pushing to remote...
✅ Done!

Available Commands

Both git-chalak and gc work identically.

Command What it does
gc st git status
gc ac Stage all + commit with default message "update"
gc ac "message" Stage all + commit with your message
gc acp Stage all + commit + push
gc acp "message" Stage all + commit with your message + push
gc p git push
gc pl git pull
gc lg git log --oneline

Installation

⚡ Recommended — pipx

pipx install git-chalak

Don't have pipx? Install it first:

sudo apt install pipx && pipx ensurepath   # Ubuntu/Debian
brew install pipx && pipx ensurepath        # macOS

pip

pip install git-chalak

From source

git clone https://github.com/sameertiruwa/git-chalak
cd git-chalak
pip install -e .

Usage

# Check what changed
gc st

# Quick save with default message
gc ac

# Commit with a real message
gc ac "fix null pointer in login"

# Full workflow — add, commit, push in one shot
gc acp "add authentication API"

# Pull latest changes before starting work
gc pl

# Review recent commits
gc lg

Features

  • Two aliases — use git-chalak or the short gc, both work the same
  • Default commit messagegc ac without a message commits as "update", great for quick saves
  • Fail-safe — if any step fails (e.g. push is rejected), the chain stops immediately and reports the error
  • Zero config — install and use, no setup required
  • Lightweight — single dependency (click), no background processes

Contributing

Contributions are welcome! Here's how:

# 1. Fork the repo on GitHub, then clone your fork
git clone https://github.com/sameertiruwa/git-chalak.git

# 2. Create a feature branch
git checkout -b feature/your-feature-name

# 3. Make your changes, then commit
git add .
git commit -m "feat: describe your change"

# 4. Push and open a Pull Request
git push origin feature/your-feature-name

Ideas for contributions:

  • gc undo — soft reset the last commit
  • gc nb "branch-name" — create and switch to a new branch
  • gc acpa "message" — add + commit + push + open PR via GitHub CLI
  • gc init — initialize a repo with a sensible .gitignore

Requirements

  • Python 3.9+
  • Git installed and available in PATH

License

MIT — free to use, fork, and modify.


Author

Sameer Tiruwa


"Ek palta install gara, Git workflow fast huncha." 🇳🇵 (Install it once, your Git workflow becomes fast forever.)

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_chalak-1.0.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

git_chalak-1.0.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file git_chalak-1.0.3.tar.gz.

File metadata

  • Download URL: git_chalak-1.0.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for git_chalak-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2f6becf5741b6fabc642c9a1539b5bbfb8791fecec481686f979a3123bfe759c
MD5 beb1bbfed001e27ada0ef63d340f871f
BLAKE2b-256 b6d277d4d3929b0a09880a32fb23858af9f3cc083cb5ba659cc88a33d19e11d6

See more details on using hashes here.

File details

Details for the file git_chalak-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: git_chalak-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for git_chalak-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7bf318e77cadb344ca3023ea26b01d207140d7152f13edb47ee5632339877e45
MD5 0d6e82a91bd8da5d69f856e6c69dfd3f
BLAKE2b-256 65ebbeb02f3cb671625e3dfc48009ea020993e09bd15134dbd20fa002f9c6436

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