Skip to main content

Automated CLI GitHub Committer

This project provides both a CLI and a desktop GUI that watch a folder and automatically commit + push to GitHub whenever there are git changes.

Prerequisites

  • Git installed and on PATH
  • Python 3.9+
  • GitHub authentication configured (HTTPS + PAT or Git Credential Manager)

CLI Usage

Setup

python autocommit.py setup --remote https://github.com/<user>/<repo>.git

Initializes a git repo if needed, sets the remote and branch, creates an initial commit (if files exist or --allow-empty-initial is used), pushes to GitHub, and writes .autocommit.json.

Run (continuous)

python autocommit.py run

Checks for file changes every interval seconds and automatically commits and pushes when changes are detected.

Run once

python autocommit.py run --once

Runs a single check/commit cycle and exits.

Commit once

python autocommit.py commit

Performs a single commit + push cycle without starting the watcher.

Use a specific folder

python autocommit.py --path "C:\path\to\repo" run

By default, the CLI uses the current directory.

CLI Config

The .autocommit.json file lives in the repo folder and is shared by both CLI and GUI.

  • remote: GitHub repo URL
  • branch: branch to push to (default main)
  • interval: seconds between checks
  • message_prefix: prefix for auto commit messages

Override run-time settings with --interval or --message. Auto-commit messages include the timestamp and a short change summary, for example: Auto commit 2026-06-01 10:12:00+0530 | M app.py (+3 -1); A README.md

Desktop App (Tkinter GUI)

python autocommit_gui.py

The GUI uses the same config file and actions as the CLI.

How to use the GUI

  1. Click Browse and select the folder to watch.
  2. Fill in Remote URL (required) and adjust other fields if needed.
  3. Click Setup Repo once to initialize and push.
  4. Click Start Watching to auto-commit and push whenever changes appear.
  5. Click Stop to pause watching.

GUI Controls (every button and field)

Control What it does
Folder The local folder to watch and commit from.
Browse Opens a folder picker and loads .autocommit.json if it exists.
Remote URL GitHub repository URL used for origin.
Branch Branch name to push to (default main).
Interval (sec) How often the app checks for changes.
Message prefix Prefix used in auto-commit messages.
Git user.name Optional repo-local git user name (auto-filled from git config when available).
Git user.email Optional repo-local git user email (auto-filled from git config when available).
Allow empty initial commit Lets setup create an empty first commit if the folder has no files.
Setup Repo Initializes git, sets remote/branch/user, creates the first commit, pushes, and saves config.
Start Watching Starts the background watcher that commits + pushes when changes are found.
Stop Stops the watcher.
Status line Shows the latest action or error from the app.

Single EXE (GUI + CLI)

Build a single Windows EXE that runs the GUI when double-clicked and the CLI when arguments are provided.

python -m pip install pyinstaller
pyinstaller --onefile autocommit_app.py --name AutoCommitter

Usage:

  • GUI: double-click dist\AutoCommitter.exe
  • CLI: run from a terminal, for example
    dist\AutoCommitter.exe setup --remote https://github.com/<user>/<repo>.git

PyPI Package

Once published, install with:

pip install auto-github-committer

Commands:

  • autocommitter (GUI if no args, CLI if args are provided)
  • autocommitter-cli (CLI only)
  • autocommitter-gui (GUI only)

Publish to PyPI

  1. Build the package:
python -m pip install build twine
python -m build
  1. Upload with your PyPI token set in your environment:
setx TWINE_USERNAME __token__
setx TWINE_PASSWORD <your-pypi-token>
python -m twine upload dist\*

Metadata

Release files for auto-github-committer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auto-github-committer 0.1.0
File Size Uploaded Provenance Actions
auto_github_committer-0.1.0.tar.gz 9.0 kB Without provenance Details for auto_github_committer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for auto-github-committer 0.1.0
File Interpreter ABI Platform Actions
auto_github_committer-0.1.0-py3-none-any.whl Python 3 none any Details for auto_github_committer-0.1.0-py3-none-any.whl

Total release size: 19.3 kB

Release files / auto_github_committer-0.1.0.tar.gz

Download URL auto_github_committer-0.1.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7d4d029528fbf18df054a0d4048a0693e151425c079fa931ae935e01d7c5a819
BLAKE2b-256 checksum
How to use checksums
7a929a2c320734f2d4842d39a1af91858e170109365a15c4e8450c60686cca74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / auto_github_committer-0.1.0-py3-none-any.whl

Download URL auto_github_committer-0.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc46eda04107e68c489181ad10c6cf57e129a2130d1ccc94b6e7aa37c1932677
BLAKE2b-256 checksum
How to use checksums
556f4772a689ccf7f19ef57b4d8186a2ab50cc087dc3227bb9fa7686f433db46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for auto-github-committer 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page