# Updating the Git repository to a new upstream version

1. Add the upstream git repository to our checkout as an additional
   remote if not already present.

   # git remote add upstream git@github.com:OpenOrienteering/mapper.git

2. Update all remotes

   # git remote update

3. Download the new upstream release

   # uscan --download

   or, a particular upstream release

   # uscan --download-version X.Y.Z

4. Merge the upstream release tag to the debian branch

   # git checkout debian
   # git merge vX.Y.Z

5. Commit the upstream tarball to the pristine-tar branch

   # pristine-tar commit ../openorienteering-mapper_X.Y.Z.orig.tar.gz vX.Y.Z

6. Push the changes to salsa

   # git push origin debian
   # git push origin pristine-tar

 -- Gaudenz Steinlin <gaudenz@debian.org>, Mon, 26 Mar 2018 23:13:01 +0200
