From: Julien Jerphanion Date: Thu, 18 Sep 2025 07:42:28 GMT Subject: Re: [PATCH] Add `-u` short option for `git pull` Message-ID: In-Reply-To: -------- Original Message -------- On 9/18/25 02:32, Junio C Hamano wrote: > Julien Jerphanion 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.