In this guide we consider adblock-plus package as example.

- Clone the git repository:

git clone git+ssh://git.debian.org/git/pkg-mozext/adblock-plus.git

- Go inside new adblock-plus directory created

cd adblock-plus

- Fetch the pristine-tar and upstream branches

git fetch origin pristine-tar:pristine-tar upstream:upstream

- uscan to get the new upstream release

uscan --debug --repack

Please USE the repack option (check for it in d/watch and if does not exist, add it)

- upgrade

git-import-orig --pristine-tar ../<new_pack>.orig.tar.{gz,bz2}

- push

git push --all

- tag

git push --tags

From now we can start with all required modification.