[Bug 264751] Committer's Guide: `git config push.default freebsd` causes error

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 23 Jun 2022 16:07:32 UTC

--- Comment #4 from Warner Losh <imp@FreeBSD.org> ---
Yea, this command looks wrong to me as well now that I'm reading it. I may have
accepted it from someone else and didn't do the due diligence to test it.

I think the proper way to set this default is on a per-branch basis. The only
way I know of is 'git push -u freebsd master' to set 'freebsd' as the default
upstream for master. There's a way you can it with git checkout --track, but
that seems to be for situations different than this. Eg when you are creating
branch 'foo' as a feature branch and want to track upstream/main so git rebase
doesn't need to specify it all the time.

Ideally, we could play test both of these recommendations and update this
section with the git push -u and maybe also update the rebasing section with
that info too. I'm a bit busy to do the testing and updating myself.

You are receiving this mail because:
You are the assignee for the bug.