News for hackers. Stuff that matters.
Re:Show HN: Git Confirm. Git hook to catch accidentally comm... by themckman on Wednesday August 03, 2016 @01:14PM (#12219607)
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 demotivate/depress me when I look at my team's git log and see a series of poorly thought out commits and messages. It's always enjoyable to look at a piece of code, wonder why it is the way it is and to find that answer in a well written commit message by the author of the change. If a tool like his can at least help developers keep the diff portion of their commits usable, then I hope more people consider using it.

It'd be interesting if it could learn from a project's history and have a developer confirm that they really want to commit files that it has determined to be unrelated, together.

Re:Show HN: Git Confirm. Git hook to catch accidentally comm... by nathancahill on Wednesday August 03, 2016 @01:42PM (#12219902)
Same. 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 unrelated files.
Re:Show HN: Git Confirm. Git hook to catch accidentally comm... by jbverschoor on Wednesday August 03, 2016 @04:01PM (#12221023)
And that's how you find those lovely credentials on github.
Re:Show HN: Git Confirm. Git hook to catch accidentally comm... by e40 on Wednesday August 03, 2016 @07:59PM (#12222423)
What fixed this for us is Gerrit. http://code.google.com/p/gerrit/

It's been fantastic. People fear change, but after a short while, everyone was digging the benefits of commenting on other people's code and other people helping them make their code better.