Packaging using gbp
git-buildpackage is a utility that supports maintaining a Debian/Ubuntu package in
git. It takes care of a lot of the details and ensures consistency and correctness.
A gbp-compatible repository has two main branches:
The upstream branch is used to store the content of successive upstream ('orig') tarballs, and each upstream release is tagged.
The master branch is forked from upstream and adds the
debian/ directory. It has tags for each package release.
When a new upstream version is integrated, the upstream branch is merged into master.
There's usually also a pristine-tar branch that's used in conjunction with upstream to recreate exact copies of the original upstream tarballs.