Re: [PATCH] Add `-u` short option for `git pull`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 18, 2025, 00:32 UTC
- Message-ID
- <xmqqplboa9cb.fsf@gitster.g>
- In-Reply-To
- <VVHyXy0fQW1fnBgiAFswUMEMMX4wnc3YIZWSRtSJzZbHOt0dfY0wCJt69MDxfue54cN2gPd8StlVtW2ERYKZcEs8Hpm7X5TaXrygCN2rK-A=@jjerphan.xyz>
Julien Jerphanion <git@jjerphan.xyz> writes:
[jc: line-wrapped an overly long single line]
Show 5 quoted lines
> 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"?