When I create a new branch from a remote in Sourcetree, it always selects "track" by default. This causes my new branch to push directly to the source remote branch.
However, I want to always push a new branch to the remote, not update the original remote branch, since that affects team collaboration.
Is there a setting to control whether "track" is selected by default?
@so1e welcome to the Atlassian community
There is not way to change this. My guess is that there is no setting change because by default Git tracks the remote branch.
Thank you — I almost forgot about this issue.
Thanks for the explanation, but I’ve already figured some things out, and it seems this was just a misunderstanding.
Indeed, when I run git checkout -b origin/staging, Git will also set up tracking by default.
It’s just that different push.default configurations lead to different results when pushing: the new branch may be pushed to origin/staging, or I may be prompted to run git push -u origin test_from_remote. When using a GUI, I probably didn’t notice this behavior.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.