Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2022 16:07:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 264751] Committer's Guide: `git config push.default freebsd` causes error
Message-ID:  <bug-264751-9-LDIWYqmI4Q@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264751-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264751-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264751

--- 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 on=
ly
way I know of is 'git push -u freebsd master' to set 'freebsd' as the defau=
lt
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 creati=
ng
branch 'foo' as a feature branch and want to track upstream/main so git reb=
ase
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264751-9-LDIWYqmI4Q>