---
name: "stg-rename"
section: "1"
platform: "linux"
package: "stgit"
version: "0.18-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/stg-rename"
---

# stg-rename(1)

Rename a patch

## NAME

stg-rename - Rename a patch

## SYNOPSIS

```
stg rename [options] [--] [oldpatch] <newpatch>
```

## DESCRIPTION

Rename \<oldpatch\> into \<newpatch\> in a series. If \<oldpatch\> is not given, the top-most patch will be renamed.

## OPTIONS

- \-b BRANCH, --branch BRANCH

  use BRANCH instead of the default one.

## STGIT

Part of the StGit suite - see [**stg**(1)](/stg/1.md)
