[infinispan-dev] Reminders about GIT

Dan Berindei dan.berindei at gmail.com
Tue Oct 18 11:52:31 EDT 2011


Nice!

On Tue, Oct 18, 2011 at 6:16 PM, Sanne Grinovero <sanne at infinispan.org> wrote:
> 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).
>>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>


More information about the infinispan-dev mailing list