News for hackers. Stuff that matters.
Re:Tips for Intermediate Git Users by stiff on Monday January 12, 2015 @01:12AM (#8872710)
The master tip: have a detailed written policy on git usage, on what goes into which branch, on git commit message format, and make really, really sure everyone understands it before they start anything.

No tips will help if the history is crap.

Re:Tips for Intermediate Git Users by Fede_V on Monday January 12, 2015 @03:21AM (#8872922)
Is there some kind of git plug in/linter that will check for commit style before accepting a commit? Basically, linting the commit messages.
Re:Tips for Intermediate Git Users by candeira on Monday January 12, 2015 @03:36AM (#8872942)
At my current gig we use a set of git hooks, and the pre-commit hook enforces the git comment style, which performs integration with bugtracking/timetracking. We wrote our own and it's just a couple of regexes tied to a couple of warnings.

Look in any git project's .git/hooks/ directory for some sample scripts.

Re:Tips for Intermediate Git Users by eltaco on Monday January 12, 2015 @09:20AM (#8873945)
a pre-commit git hook?

An example for jquery style commits is https://www.npmjs.com/package/commitplease

Re:Tips for Intermediate Git Users by edem on Monday January 12, 2015 @05:29AM (#8873156)
I've seen a project where the lead guy wrote two scripts he called "git-rebase-merge" and "git-lock". Imagine when you have the ability to lock and rebase merge commits. This leads to an endless stream of errors and head scratching.
Re:Tips for Intermediate Git Users by amelius on Monday January 12, 2015 @05:22AM (#8873134)
> No tips will help if the history is crap.

So there should actually be a history of histories :) Perhaps something for the git team to pick up...

Re:Tips for Intermediate Git Users by anton_gogolev on Monday January 12, 2015 @06:28AM (#8873329)