Git Confirm
Dev tools
git hook
SHOW HN2016
How HN took it
4 positive, 5 neutral or asking, 0 mixed, 3 critical, out of 12 comments about the project. Thread score +0.08.
Idea: 4 for, 3 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful for catching unrelated or temporary changes before commit
From 2 comments
There isn't a lot that peeves me more than working with developers with poor git commit habits. As someone who takes every commit they make seriously, it can really…
themckman on HNSame. Last project I worked on, most people used git add ., git commit, without ever looking at what was staged. The peeves were real. I'd love a tool that didn't let you commit…
nathancahill on HN
Overcommit is a good alternative for managing hooks
From 1 comment
https://github.com/brigade/overcommit It's wonderful.
dpcx on HN
Objections
Copying hook via curl into .git/hooks could clobber existing hooks
From 1 comment
``` curl https://.../hook.sh > .git/hooks/pre-commit ``` This seems like a bad idea, since you may already have a commit hook that this would clobber. Does anyone use any kind of…
web007 on HN
Developers can bypass it with -n or empty messages
From 2 comments
It's a good idea but ultimately the people who don't care about this will start doing: git commit -am "" /y
throwawayReply on HNDon't forget -n (--no-verify). The last thing we need is some automated test suite getting in our way ;)
happyslobro on HN
Requests
Support for matching AWS access key patterns by default
From 1 comment
``` git config --add hooks.confirm.match "AKIA" ``` would probably be a good default for AWS users.
john_oshea on HN
Learn from project history to flag unrelated files
From 1 comment
There isn't a lot that peeves me more than working with developers with poor git commit habits. As someone who takes every commit they make seriously, it can really…
themckman on HN
Questions
How to handle hook plugin management
From 1 comment
``` curl https://.../hook.sh > .git/hooks/pre-commit ``` This seems like a bad idea, since you may already have a commit hook that this would clobber. Does anyone use any kind of…
web007 on HN
Alternatives named
overcommit
From 2 comments
``` curl https://.../hook.sh > .git/hooks/pre-commit ``` This seems like a bad idea, since you may already have a commit hook that this would clobber. Does anyone use any kind of…
web007 on HNhttps://github.com/brigade/overcommit It's wonderful.
dpcx on HN
git add -p
From 1 comment
You can also git add -p, but that's a habit you have to develop.
coherentpony on HN
git commit -v
From 1 comment
This looks pretty similar to `git commit -v` which brings up a diff of changes in a text editor and prompts you for a commit message.
jdoliner on HN
GUI clients like SourceTree
From 2 comments
Honestly I think the best thing you can do towards making good commits is having a good GUI client and using it well. What I do is, after I'm done making a mess of things, I…
boardwaalk on HNI agree, some time ago I wrote down why I liked GUIs and this was the main point. A relevant part is: ``` This also means that for every commit, you ‘must’ skim through each file…
wingerlang on HN