Suite to help with maintaining Debian packages in Git repositories.


GBP ships the following tools:

  • gbp import-{dsc,dscs}: import existing Debian source packages into a git repository
  • gbp import-orig: import a new upstream version into the git repository
  • gbp buildpackage: build a package out of a git repository, check for local modifications and tag appropriately
  • gbp dch: generate Debian changelog entries from Git commit messages
  • gbp pq: maintain debian/patches on a patch queue branch
  • gbp clone: clone a remote repository and make it ready for gbp buildpackage
  • gbp pull: pull from a remote repository and update the necessary branches
  • gbp create-remote-repo: mirror your git repository to a remote side
  • gbp config: print configuration values

There are some helpers in /usr/share/doc/git-buildpackage/examples/:

  • gbp-posttag-push: posttag hook for gbp buildpackage to push out the necessary changes to a remote repository after a release
  • gbp-add-patch: Commits a patch to the current branch and uses the Path Header for the commit message, useful after gbp pq export.


Source Code

The source code is available via:

git clone

and can be browsed here.

There's also a clone on github.

Debian packages

Debian packages of git-buildpackage can be downloaded from the Debian Archive. Git snapshots are available here.


For enhancements and feature requests you can either use the Debian bugtracking system or email me directly.

Mailing List

git-buildpackage has it's own mailing list for general discussion and patches.


Here's my current gbp.conf.

Related Tools



git-buildpackage was written by Guido G√ľnther with contributions from many individuals. See the changelog for attributions.


git-buildpackage is free software and licensed under the GPL Version 2.