[infinispan-dev] Reminders about GIT

Sanne Grinovero sanne at infinispan.org
Tue Oct 18 11:16:54 EDT 2011


Almost forgot the main tip; use:

git config branch.master.mergeoptions "--ff-only"

It will prevent a non-linear creating merge with an error as

"fatal. Not possible to fast-forward, aborting."

Cheers,
Sanne

On 18 October 2011 16:09, Sanne Grinovero <sanne at infinispan.org> wrote:
> 1) If you have warnings about "Merge made by recursive" you have to
> fix it rebasing.
>
> 2) If you have warnings about "non-fast-forward" you have to rebase.
>
> 3) If you see "non-fast-forward updates were rejected" you shall never
> use "force" on upstream! It means that another patch was merged before
> you and you have to update your master again, and rebase again.
>
> 4) "force" is allowed only in special maintenance circumstances. If
> you find you're needing it to handle a pull request, then you're doing
> it wrong, and the mistake might be a dangerous one. It's like the good
> rule of never commit when you're drunk (coding is allowed).
>


More information about the infinispan-dev mailing list