From: Felipe Contreras Date: Fri, 28 Apr 2023 12:21:19 GMT Subject: Re: [RFC PATCH 1/1] push: introduce '--heads' option Message-ID: <644bba3f96e3b_1c66e29436@chronos.notmuch> In-Reply-To: <20221205133525.60464-2-tenglong.tl@alibaba-inc.com> Teng Long wrote: > From: Teng Long > > 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