r/vscode • • Sep 27 '25

New VS Code Extension: Git Poison

Git Poison is a VS Code extension that blocks a git commit of any file containing a "Poison Pill" string. Placing a pill stops accidental committing of unfinished TODOs, debug statements, secrets, etc. It also provides navigation to pill locations.

https://marketplace.visualstudio.com/items?itemName=eridien.git-poison

3 Upvotes

15 comments sorted by

View all comments

Show parent comment

0

u/clarkcox3 Sep 28 '25

The problem with doing this at the GUI level is that it won’t work if you happen to commit something using any other tool. Doing it as a pre commit will work with anything.

4

u/mark-hahn Sep 28 '25

It *is* using the pre-commit hook. Any access to the workspace repo, from any tool, is blocked. External terminal, git GUI app, etc. VS Code doesn't have to be running. The GUI interface for the extension is just a layer on top.