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

# stg-sync(1)

Synchronise patches with a branch or a series

## NAME

stg-sync - Synchronise patches with a branch or a series

## SYNOPSIS

```
stg sync [options] [--] [<patch1>] [<patch2>] [<patch3>..<patch4>]
```

## DESCRIPTION

For each of the specified patches perform a three-way merge with the same patch in the specified branch or series. The command can be used for keeping patches on several branches in sync. Note that the operation may fail for some patches because of conflicts. The patches in the series must apply cleanly.

## OPTIONS

- \-a, --all

  Synchronise all the applied patches.

- \-B REF-BRANCH, --ref-branch REF-BRANCH

  Syncronise patches with BRANCH.

- \-s SERIES, --series SERIES

  Syncronise patches with SERIES.

## STGIT

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