Is your feature request related to a problem? Please describe.
The latest version as of writing (2.29.0) of git does not allow the use of:
git branch --set-upstream origin main
Git Gosling currently makes no mention of this in the section Create your first GitHub repo
.
Describe the solution you'd like
Mention the newer syntax. In that context it should be:
git branch --set-upstream-to=origin/main
When creating new branches the --track
option is used, although I have not tested this myself.
Describe alternatives you've considered
Additional context
Link to documentation: https://git-scm.com/docs/git-branch#Documentation/git-branch.txt---set-upstream-toltupstreamgt