git-branchmove(1)

git-branchmove1

Move branches to or from a remote

Usage

git-branchmove {[{--detach | -d}] get | put remote pattern ...}

Overview

Move branches matching pattern to or from git remote remote.

Options

--detach|-d

If the move would delete the currently checked out branch in the source repository, attempt to detach HEAD first.

Note that in the case of the get operation, the attempt to detach HEAD is somewhat fragile. You will need unrestricted SSH access to the remote, and pushInsteadOf git configuration keys will not always be expanded, due to limitations in git.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

This Perl version of git-branchmove was written by Sean Whitton <[email protected]>, based on an earlier shell script by Ian Jackson. That script made some assumptions that we try to avoid, for compatibility with more git remotes and local git configurations.

From chiark-scripts 8.0.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.