Package Maintenance Tips ======================== Clone and add upstream repo: $ gbp clone --pristine-tar https://anonscm.debian.org/git/pkg-go/packages/golang-github-xtaci-smux.git $ cd golang-github-xtaci-smux $ git remote add xtaci https://github.com/xtaci/smux When upstream releases a new version: $ debian/maint-tools/new_upstream ## command below is optional. ## if you want to touch ds source of new version from upstream, ## e.g. remove more files, please do it now and then: $ git add -u # git diff --name-status $ git commit --amend --no-edit $ debian/maint-tools/update_ds_tag ## make a new release $ dch -i $ dch -r $ git add -u $ git commit -m "Prepare to release x.y.z+ds-1" Build: ## general gbp build $ gbp buildpackage -uc -us --git-pristine-tar ## gbp build with pbuilder $ gbp buildpackage --git-pristine-tar --git-pbuilder --git-export-dir=../build-area