NoGit
ZIP snapshots + smart diff.
NoGit watches your working directory and creates ZIP snapshots automatically or manually. No commits, no branches, no rebases. Just timestamped ZIPs and a readable diff.
Installation
pip install nogit
Or with pipx:
pipx install nogit
Commands
nogit or nogit backups
Lists snapshots for the current directory. Offers to launch a diff or restore.
nogit snapshot
Creates a full ZIP snapshot of the current directory (manual mode only).
Before creating the ZIP, nogit scans the directory and displays a summary. If the directory is detected as dangerous (system root, too many files, too high in the tree), a confirmation is required.
In non-interactive mode (pipe, AI agent), dangerous snapshots are automatically blocked. To confirm explicitly:
nogit snapshot --yes
Some directories are unconditionally forbidden (/tmp, /home, %USERPROFILE%, C:\Windows, etc.) — --yes does not bypass them.
nogit automatic
Enables the watcher — monitors the directory and creates an incremental snapshot on every detected change. Launches a dedicated terminal with live logs. A full snapshot is created on startup.
The watcher uses
st_mtime+ SHA-256 to detect real changes and avoid false positives (auto-save, restore, etc.).
Before enabling the watcher, nogit prints the monitored tree and asks for confirmation. In non-interactive mode (systemd, cron, container, AI agent) there is no stdin: the command then declines cleanly instead of crashing. To confirm upfront:
nogit automatic --yes
Under a supervisor (systemd, container)
By default nogit automatic detaches the watcher into a dedicated terminal and returns. A supervisor tracking the main process would therefore consider the service finished. Use --foreground: nogit becomes the watcher itself and stays in the foreground until stopped.
nogit automatic --yes --foreground
Example systemd user unit:
systemd-run --user --unit=nogit-myproject \
--property=WorkingDirectory=/path/to/project \
--property=Restart=on-failure \
--property=StartLimitIntervalSec=60 \
--property=StartLimitBurst=5 \
"$(command -v nogit)" automatic --yes --foreground
Both options are independent: --yes removes the prompts, --foreground changes the execution mode. Under a supervisor you need both.
nogit manual
Disables the watcher and switches back to manual snapshot mode.
nogit backups --global
Lists all NoGit projects registered on the machine. Automatically cleans up projects whose directory has been deleted.
nogit backups --external
Configures an external backup folder (second drive, NAS...). Snapshots are automatically copied there after each creation.
nogit diff <snap1> <snap2>
Compares two ZIP snapshots. If either snapshot is incremental, automatically reconstructs the full state from the chain before comparing.
The oldest snapshot is always used as the reference (A), the most recent as the target (B). So added means "appeared over time", deleted means "disappeared over time".
Generates a folder in .nogit/diff/:
.nogit/diff/
2026-05-23T01_vs_2026-05-23T02/
diff.txt — human-readable global report
summary.json — index of changed files (for AI)
my_file.diff.json — detailed hunks per modified file
nogit restore <number>
Restores the project from a snapshot (the number matches the order shown in nogit backups). If the snapshot is incremental, automatically walks the chain back to the last full snapshot. Verifies MD5 hashes of binary files and reports divergences.
Restore can also be launched directly from nogit backups by choosing r.
nogit show w / nogit show c
Displays licensing information: w for the absence of warranty, c for redistribution conditions (GNU AGPL v3).
nogit --version
Prints the installed version (-V works too).
$ nogit --version
nogit 0.3.2
Every command has its own details:
nogit diff -h,nogit automatic -h, etc.
Directory Structure
project/
.nogit/
snapshots/ — timestamped ZIPs (full or incremental)
diff/
snap_a_vs_snap_b/ — one folder per diff run
diff.txt — human-readable report
summary.json — index of changed files
my_file.py.diff.json — hunks per modified file
.nogitignore — files/folders excluded from snapshots
The .nogit folder follows the project — it can be shared or copied as-is.
Snapshots
Full — contains all project files (created by nogit snapshot or at nogit automatic startup).
Incremental — contains only files modified since the last snapshot (created by the watcher in automatic mode).
Each ZIP contains a nogit.meta.json indicating its type (full or incremental).
Binary files and files > 10 MB are not included in the ZIP — a .meta.json with their size and MD5 is stored instead.
Global Registry
NoGit maintains a global registry of projects at %USERPROFILE%\.nogit\registry.json (or ~/.nogit/registry.json on Linux/macOS). This file is automatically synced to the external backup if configured.
External Backup
When an external folder is configured via nogit backups --external, the following structure is created:
external_folder/
.nogitbackups/
configs/
registry.json — copy of the global registry
ProjectName_abc123/
snapshots/ — copies of the ZIPs
License
Copyright (c) 2026 Mehdi.A — distributed under the GNU AGPL v3 license.
Credits
MIME types dataset based on micnic/mime.json by Nicu Micleușanu, modified to include missing programming language extensions.
Metadata
Release files for nogit 0.3.2
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 | Actions |
|---|---|---|---|---|
| nogit-0.3.2.tar.gz | 51.3 kB | Without provenance | Details for nogit-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nogit-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for nogit-0.3.2-py3-none-any.whl |
Total release size: 102.7 kB
Release files / nogit-0.3.2.tar.gz
| Download URL | nogit-0.3.2.tar.gz |
|---|---|
| Size | 51.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cf4db78eae0fbeb7e5ba1c716c76ac180745cc982141b844f2a160d56060fd5
|
|
BLAKE2b-256 checksum How to use checksums |
66bae2e2b481390f636d1fb83312fe4211c8e84c84c1a6ebbaab863f4dfcab03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / nogit-0.3.2-py3-none-any.whl
| Download URL | nogit-0.3.2-py3-none-any.whl |
|---|---|
| Size | 51.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0705b6bf366b6f0b397ae7d45c535a32e5d2fd8dfc003999f79e8d1c4e1e87f5
|
|
BLAKE2b-256 checksum How to use checksums |
cdea0cc2effb094b10d38d2ed1513cfeb9db3caec5f73e1b4dc51048958d3e28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for nogit 0.3.2
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.