progit / progit2

Pro Git 2nd Edition
Other
5.83k stars 1.92k forks source link

References to `--set-upstream` #1818

Closed 20jasper closed 1 year ago

20jasper commented 1 year ago

General overview of your idea.

In sections "3.3 Git Branching - Branch Management" and "5.2 Distributed Git - Contributing to a Project," on both the website and the pdf, it says to use the --set-upstream option to set upstream branches, but it is no longer supported. It should be changed to --set-upstream-to in all three places.

It can be found on

What problem will this solve?

It updates unsupported syntax that will confuse readers unfamiliar with git.

Have you thought about other solutions?

The first 2 instances could be changed to -u, but the last is describing what -u does, so --set-upstream should still be changed to --set-upstream-to in that case

Do you want to help with this enhancement idea?

Yes

20jasper commented 1 year ago

I checked again, and realized --set-upstream was being used as an option for git push, sorry about that!