Error: unknown switch `B' in git checkout



I’m using a docker environment that unfortunately uses an old version of git, v1.8.3.1. It contains other things that I need, and switching is not really an option.

When I try to run the checkout step, I get an error
error: unknown switch `B'
I guess this is from the line git checkout -q -B "$CIRCLE_BRANCH".

Is there a way to override the options checkout command passes to git? Or maybe an easy way to install an updated version of git?

Thanks in advance!


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.