---
name: "gbp-create-remote-repo"
section: "1"
platform: "linux"
package: "git-buildpackage"
version: "0.9.38"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gbp-create-remote-repo"
---

# gbp-create-remote-repo(1)

Create a remote Git repository

## NAME

gbp-create-remote-repo - Create a remote Git repository

## SYNOPSIS

FC**gbp create-remote-repo**F\[0\]  \[FC**--version**F\[0\]\] \[FC**--help**F\[0\]\] \[FC**--verbose**F\[0\]\] \[FC**--color=**F\[0\]\[auto\|on\|off\]\] \[FC**--color-scheme=**F\[0\] *COLOR\_SCHEME*\] \[FC**--remote-url-pattern=**F\[0\] *url-pattern*\] \[FC**--remote-name=**F\[0\] *name*\] \[FC**--template-dir=**F\[0\] *directory*\] \[FC**--remote-config=**F\[0\] *config*\] \[FC**--\[no-\]pristine-tar**F\[0\]\] \[FC**--debian-branch=**F\[0\] *branch\_name*\] \[FC**--upstream-branch=**F\[0\] *branch\_name*\] \[FC**--\[no-\]track**F\[0\]\] \[FC**--\[no-\]bare**F\[0\]\] \[*create* \| *list*\]

## DESCRIPTION

**gbp create-remote-repo** creates a repository at a remote location via ssh and pushes the local repository into it. It then sets up remote branch tracking so you can use **gbp pull** to update your repository from there.

Before performing any action on the remote location, it will print the remote URL and ask for confirmation.

Note: By default, the remote repositories are created in the FCcollab-maintF\[0\] repository on FCgit.debian.orgF\[0\].

When invoked with FC**list**F\[0\] it lists the available remote config templates.

## OPTIONS

- FC**--version**F\[0\]

  Print version of the program, i.e. version of the git-buildpackage suite

- FC**-v**F\[0\], FC**--verbose**F\[0\]

  Verbose execution

- FC**-h**F\[0\], FC**--help**F\[0\]

  Print help and exit

- FC**--color=**F\[0\]\[auto\|on\|off\]

  Whether to use colored output.

- FC**--color-scheme=**F\[0\]*COLOR\_SCHEME*

  Colors to use in output (when color is enabled). The format for COLOR\_SCHEME is '\<debug\>:\<info\>:\<warning\>:\<error\>'. Numerical values and color names are accepted, empty fields imply the default color. For example, FC**--git-color-scheme=**F\[0\]FC'cyan:34::'F\[0\] would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red).

- FC**--remote-url-pattern**F\[0\]=*pattern*

  Where to create the remote repository. The part *%(pkg)s* will be replaced by the package name.

- FC**--remote-name**F\[0\]=*name*

  What name git will use when referring to that repository, e.g. 'origin'.

- FC**--template-dir**F\[0\]=*directory*

  Template directory to pass to **git init** on the remote side. This can be used to customize the remote repository, e.g. to set up hooks.

- FC**--remote-config**F\[0\]=*config*

  Name of a config file section in FC*gbp.conf*F\[0\] that specifies the above parameters. See [**gbp.conf**(5)](/gbp.conf/5.md) manpage for details.

- FC**--debian-branch**F\[0\]=*branch\_name*

  The branch in the Git repository the Debian package is being developed on, default is *master*.

- FC**--upstream-branch**F\[0\]=*branch\_name*

  The branch in the Git repository the upstream sources are put onto. Default is *upstream*.

- FC**--pristine-tar**F\[0\]

  Whether to push the pristine tar branch.

- FC**--\[no-\]track**F\[0\]

  Whether to set up branch tracking for the debian, upstream and pristine-tar branches.

- FC**--\[no-\]bare**F\[0\]

  Whether the remote repository should be a bare repository (this is the default).

## CONFIGURATION FILES

Several FC*gbp.conf*F\[0\] files are parsed  to set defaults for the above command-line arguments. See the [**gbp.conf**(5)](/gbp.conf/5.md) manpage for details.

## SEE ALSO

[**gbp-buildpackage**(1)](/gbp-buildpackage/1.md), [**gbp-pull**(1)](/gbp-pull/1.md), [**gbp.conf**(5)](/gbp.conf/5.md)

## AUTHOR

Guido Günther \<FCagx@sigxcpu.orgF\[0\]\>
