Re: [RFC PATCH 1/1] push: introduce '--heads' option
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 28, 2023, 12:21 UTC
- Message-ID
- <644bba3f96e3b_1c66e29436@chronos.notmuch>
- In-Reply-To
- <20221205133525.60464-2-tenglong.tl@alibaba-inc.com>
Teng Long wrote:
Show 12 quoted lines
> From: Teng Long <dyroneteng@gmail.com> > > The '--all' option of git-push built-in cmd support to push all branches > (refs under refs/heads) to remote. Under the usage, a user can easlily > work in some scenarios, for example, branches synchronization and batch > upload. > > '--all' was introduced for a long time, meanwhile, git supports to > customize the storage location under "refs/". when a new git user see > the usage like, 'git push origin --all', we might feel like we're > pushing _all_ the refs instead of just branches without looking at the > documents until we found the related description of it or '--mirror'.
Completely agree.
This is something I spotted a long time ago. Although I would prefer `--branches` over `--heads`.
-- Felipe Contreras