Keep local configs, plans, and private notes visible to AI agents without staging them into shared Git history.
Keep your workspace discoverable for tools while ensuring repository hygiene.
Tracked files stay as real files in their exact repository paths. No complex symlinks or directories that break tool discovery or IDE indexing.
Auto-installed pre-commit and pre-push hooks safeguard your workflow. If an agent tries to stage a tracked private configuration, PGit blocks the action immediately.
Canonical copies are stored in your user directory (~/.pgit/private-config). They link to your repository automatically via stable, normalized git remote identities.
Clean up your workspace with a single command before submitting your code. Drop local private artifacts instantly, commit your changes, and restore them when returning to work.
Integrated directly into your local CLI shell. Zero complexity.
Add directories and configuration files to the PGit tracking manifest. They remain accessible as real local files in your working directory.
Sync your modifications safely to your user-level private config database. Keep your backups secure and synchronized across multiple projects.
Drop your working copies to perform review and commit operations. Once done, restore your workspace back to its agent-ready state.
Local first: Your private workspace configuration remains strictly on your machine.
Your active git directory containing your code and agent directories. Files are actual local files.
Canonical copies are stored out-of-repo at ~/.pgit/private-config/ in project-specific directories.
Simple CLI vocabulary built to complement standard Git practices.
Answers to common design and integration queries.
No. PGit does not touch .gitignore or .git/info/exclude by default. It relies on the pre-commit and pre-push hooks to verify staging safety, keeping your configuration fully transparent to your IDE and local agents.
Your local configuration store resides outside the repository in your system home folder under ~/.pgit/private-config/<project-id>/. It keeps files separated by normalized repository remote URLs to sync across workspaces safely.
To avoid accidental loss, PGit prevents overwrites if the local copy and private store copy have both diverged. Supplying the --force flag allows you to bypass the check, which automatically creates a backup of the overwritten file inside your config directory.
Yes. PGit supports shared configurations. You can use pgit preset add --global <name> <paths...> to establish a system-wide preset pattern. Applying it to any new workspace is simple using pgit preset apply <name>.
Ready to secure your local workspace? Installation takes seconds.
© 2026 PGit CLI. Open source under the MIT License.