From 8426c04eeb7f3e78257393cbe8ac30641a90223f Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 29 Mar 2018 14:28:38 +0200 Subject: Recommend a `--prune` while `git fetch`ing Especially with the main gitlab repository, there tends to be tons of stray branches, a continue `git fetch` without any -p will easily lead to hundreds of "orphaned branches" in the local checkouts. Signed-off-by: Mattia Rizzolo --- doc/update/10.5-to-10.6.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/update') diff --git a/doc/update/10.5-to-10.6.md b/doc/update/10.5-to-10.6.md index f5c5c305726..2f90fb62c4a 100644 --- a/doc/update/10.5-to-10.6.md +++ b/doc/update/10.5-to-10.6.md @@ -103,7 +103,7 @@ rm go1.8.3.linux-amd64.tar.gz ```bash cd /home/git/gitlab -sudo -u git -H git fetch --all +sudo -u git -H git fetch --all --prune sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically sudo -u git -H git checkout -- locale ``` @@ -131,7 +131,7 @@ sudo -u git -H git checkout 10-6-stable-ee ```bash cd /home/git/gitlab-shell -sudo -u git -H git fetch --all --tags +sudo -u git -H git fetch --all --tags --prune sudo -u git -H git checkout v$(