Re: [PATCH] Add `-u` short option for `git pull`
- From
Julien Jerphanion <git@jjerphan.xyz>
- Date
- Sep 17, 2025, 16:21 UTC
- Message-ID
- <VVHyXy0fQW1fnBgiAFswUMEMMX4wnc3YIZWSRtSJzZbHOt0dfY0wCJt69MDxfue54cN2gPd8StlVtW2ERYKZcEs8Hpm7X5TaXrygCN2rK-A=@jjerphan.xyz>
- In-Reply-To
- <xmqqikiam90b.fsf@gitster.g>
-------- Original Message -------- On 8/26/25 16:51, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> "Julien Jerphanion via GitGitGadget" <gitgitgadget@gmail.com> > writes: > > > From: Julien Jerphanion <git@jjerphan.xyz> > > > > Add the short form `-u` as an alias for `--set-upstream` > > in `git pull`, similarly to `git push` which supports both forms. > > > > This allows users to use `git pull -u <remote> <branch>` as a > > shorter alternative to `git pull --set-upstream <remote> <branch>`. > > The above explains what it does. It does not justify why it is > needed. Surely it may allow them to type less, but is it something > they would do very often, like every other day or even twice an > hour? If not, should 'set-upstream' squat on a short-and-sweet 'u', > robbing it from future developers to use it for more useful purpose? > >
Hello,
Before all, thank you for maintaining git!
Having this shortcut would be really useful for some use cases where one needs to pull locally branches from forks before updating them and pushing them again on the fork instead than on the upstream project (typical use case for conda-forge's feedstocks).
Julien.