From the git docs,
git checkout [-q] [-f] [-m] [[-b|-B|--orphan] <new_branch>] [<start_point>]
start_point is defined as creating the new branch based on the commit from the starting point branch or commit, but in this specific case is also creating a branch that is tracking the starting point, for example:
git checkout -b testbranch devbranch
Outputs:
Branch testbranch set up to track remote branch devbranch from origin by rebasing.
Is this expected behaviour? shouldn't the git checkout just create a local branch that is not tracking any remote branch until specified? Is this a configuration i have enabled that is triggering this behaviour?
branch.autoSetupRebasetotrue.