aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/git.pm_should_prune_remote_branches_when_fetching.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-09-14 15:45:38 -0400
committerJoey Hess <joey@kitenet.net>2010-09-14 15:45:38 -0400
commitcd794613b6f5140365e51f79023c882e8ea71197 (patch)
tree5a59301da5e14c8f4cdcd5f1d31a4558e87ae78d /doc/bugs/git.pm_should_prune_remote_branches_when_fetching.mdwn
parent8c8d2c2d2cd259f3e72fd0a4022d02e15e66104f (diff)
downloadikiwiki-cd794613b6f5140365e51f79023c882e8ea71197.tar
ikiwiki-cd794613b6f5140365e51f79023c882e8ea71197.tar.gz
git: When updating from remote, use git pull --prune, to avoid possible errors from conflicting obsolete remote branches.
Diffstat (limited to 'doc/bugs/git.pm_should_prune_remote_branches_when_fetching.mdwn')
-rw-r--r--doc/bugs/git.pm_should_prune_remote_branches_when_fetching.mdwn3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/bugs/git.pm_should_prune_remote_branches_when_fetching.mdwn b/doc/bugs/git.pm_should_prune_remote_branches_when_fetching.mdwn
index 01f3d1a28..5dc4250e3 100644
--- a/doc/bugs/git.pm_should_prune_remote_branches_when_fetching.mdwn
+++ b/doc/bugs/git.pm_should_prune_remote_branches_when_fetching.mdwn
@@ -9,3 +9,6 @@ Pruning remote branches can be done automatically with the --prune option to "gi
> from obsolete remote branches. --[[Joey]]
Suppose a remote repository contains a branch named "foo", and you fetch from it. Then, someone renames that branch to "foo/bar". The next time you fetch from that repository, you will get an error because the obsolete branch "foo" is blocking the branch "foo/bar" from being created (due to the way git stores refs for branches). Pruning gets around the problem. It doesn't really add much overhead to the fetch, and in fact it can *save* overhead since obsolete branches do consume resources (any commits they point to cannot be garbage collected). --[[blipvert]]
+
+> Ok, so git pull --prune can be used to do everything in one command.
+> [[done]] --[[Joey]]