diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-07-06 15:27:08 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-06 07:45:57 -0700 |
| commit | 002fe677caddc8162949315c73e53422d4e0f4e8 (patch) | |
| tree | 35b3473d7490164f3de4380fe36e769ff1da2834 /contrib/persistent-https | |
| parent | fa4eefe900b679c58ee0013198a9b11d036531ad (diff) | |
builtin/refs: add "rename" subcommand
Add a "rename" subcommand to git-refs(1) with the syntax:
$ git refs rename <oldref> <newref>
It renames <oldref> together with its reflog to <newref>; even when used
on a local branch ref, the current value and the reflog of the ref are
the only things that are renamed. Document it and redirect casual users
to "git branch -m" if that is what they wanted to do.
Co-authored-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
