summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authoragx <agx@web>2009-11-07 14:59:16 +0100
committerWiki User <wikwik@wiki.sigxcpu.org>2009-11-07 14:59:16 +0100
commit9857d8a5a4a773f2d3fcc5e64b24414f1f88a2ec (patch)
treef7536fa8f9ed92d12e0718547024205149769a72 /development
parentf2c085b597314865733101f795cdee204ee2095d (diff)
add gbp-pull
Diffstat (limited to 'development')
-rw-r--r--development/debian_packages_in_git.mdwn27
1 files changed, 27 insertions, 0 deletions
diff --git a/development/debian_packages_in_git.mdwn b/development/debian_packages_in_git.mdwn
index 34fdc0e..b737b0c 100644
--- a/development/debian_packages_in_git.mdwn
+++ b/development/debian_packages_in_git.mdwn
@@ -50,6 +50,33 @@ However you *can* push out patch-queue branches. Other team members must just be
# Cloning a repository
If you use *gbp-clone* instead of *git clone* to clone a remote repository it will automatically set up the *debian*, *upstream* and *pristine-tar* branches for you. The [manual](http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.intro.html#GBP.REPOSITORY) explains the terminology.
+# Keeping a repository up to date
+After initially cloning with *gbp-clone* you can run *gbp-pull* to update your
+*debian*, *upstream* and *pristine-tar* branches from the remote site. So the
+complete workflow for simple team maintenance looks like this:
+
+ # Initially clone the repo once
+ gbp-clone git://git.debian.org/pkg-libvirt/gtk-vnc.git
+ cd gtk-vnc
+
+Work on that clone, commit, release, push, etc. Now after a couple of days you
+want to make more changes but don't know if another developer worked on it. So
+you do:
+
+ # Update to what others might have pushed
+ gbp-pull
+
+This will update all necessary branches to what other developers might have
+pushed in the meantime. If you're also using patch-queues as described above
+you additionally have to refresh your *patch-queue* branch:
+
+ # Update to what others might have pushed
+ git-branch -D patch-queue/master
+ gbp-pq import
+ git checkout master
+
+Future versions of *gbp-pull* will allow you to do all the above steps at once.
+
# Preparing a Backport
I keep backports on a separate *bpo-<release>* branch like *bpo-lenny*: