git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add `-u` short option for `git pull`

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 26, 2025, 14:51 UTC
Message-ID
<xmqqikiam90b.fsf@gitster.g>
In-Reply-To
<pull.2037.git.git.1756147789443.gitgitgadget@gmail.com>

"Julien Jerphanion via GitGitGadget" <gitgitgadget@gmail.com> writes:

Show 7 quoted lines
> 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?

Previous: D. Ben KnobleNext: Julien Jerphanion
Message 3 of 6 in “Add `-u` short option for `git pull`”
  1. Add `-u` short option for `git pull`Julien Jerphanion via GitGitGadget, Aug 25, 2025
  2. D. Ben KnobleAug 26, 2025
  3. Junio C HamanoAug 26, 2025
  4. Julien JerphanionSep 17, 2025
  5. Junio C HamanoSep 18, 2025
  6. Julien JerphanionSep 18, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.