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

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

From
Julien Jerphanion <git@jjerphan.xyz>
Date
Sep 18, 2025, 07:42 UTC
Message-ID
<P018trwh6r7kRRrp99nCCDUdrKT3u7MvjNd_wUm2o2w3alWw4gpsvbEmp856xwAnMkuuLQBEUNfNxCU-K7xO0Zrw0Qsy5ZP5kOrDXjcwNQQ=@jjerphan.xyz>
In-Reply-To
<xmqqplboa9cb.fsf@gitster.g>

-------- Original Message -------- On 9/18/25 02:32, Junio C Hamano <gitster@pobox.com> wrote:

Show 18 quoted lines
>  Julien Jerphanion <git@jjerphan.xyz> writes:
>  
>  [jc: line-wrapped an overly long single line]
>  
>  > 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).
>  
>  Sorry, do you mean that you stay on a single branch, and then you
>  would pull from one place with "git pull -u" followed by "git push"
>  to push back there, and repeat that for other places, practically
>  redefining the meaning of the "upstream" to "the last remote
>  repository I pulled from and I am supposed to push to that remote
>  and nowhere else in my workflow"?
>  
>

More or less, I was referring to the official repository in such workflows as `upstream`.

I would also sporadically fetch and pull from `upstream`, but I would not set local branches to tracks remote branches there.

As a user, I find that having `-u` usable for the `pull` command would be consistent and expected given that it is present for other commands already.

Thank you for spending time considering this addition.
Previous: Junio C Hamano
Message 6 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.