summaryrefslogtreecommitdiffstats
path: root/man/repo-gc.1
diff options
context:
space:
mode:
authorJosip Sokcevic <sokcevic@chromium.org>2024-12-16 22:30:07 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-12-18 09:23:49 -0800
commit13d6588bf60f0980ffa3d178441fa707655fee95 (patch)
tree38d1bd9e2ad3988739576d82d4d6a62ffd69364b /man/repo-gc.1
parent9500aca754058bff18ddf35db62852ca4f722c63 (diff)
downloadgit-repo-13d6588bf60f0980ffa3d178441fa707655fee95.tar.gz
gc: Introduce new command to remove old projectsv2.50.1
When projects are removed from manifest, they are only removed from worktree and not from .repo/projects and .repo/project-objects. Keeping data under .repo can be desired if user expects deleted projects to be restored (e.g. checking out a release branch). Android has ongoing effort to remove many stale projects and this change allows users to easily free-up their disk space. Bug: b/344018971 Bug: 40013312 Change-Id: Id23c7524a88082ee6db908f9fd69dcd5d0c4f681 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/445921 Reviewed-by: Mike Frysinger <vapier@google.com> Commit-Queue: Josip Sokcevic <sokcevic@chromium.org> Reviewed-by: Gavin Mak <gavinmak@google.com> Tested-by: Josip Sokcevic <sokcevic@chromium.org>
Diffstat (limited to 'man/repo-gc.1')
-rw-r--r--man/repo-gc.143
1 files changed, 43 insertions, 0 deletions
diff --git a/man/repo-gc.1 b/man/repo-gc.1
new file mode 100644
index 00000000..e465a253
--- /dev/null
+++ b/man/repo-gc.1
@@ -0,0 +1,43 @@
1.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
2.TH REPO "1" "December 2024" "repo gc" "Repo Manual"
3.SH NAME
4repo \- repo gc - manual page for repo gc
5.SH SYNOPSIS
6.B repo
7\fI\,gc\/\fR
8.SH DESCRIPTION
9Summary
10.PP
11Cleaning up internal repo state.
12.SH OPTIONS
13.TP
14\fB\-h\fR, \fB\-\-help\fR
15show this help message and exit
16.TP
17\fB\-n\fR, \fB\-\-dry\-run\fR
18do everything except actually delete
19.TP
20\fB\-y\fR, \fB\-\-yes\fR
21answer yes to all safe prompts
22.SS Logging options:
23.TP
24\fB\-v\fR, \fB\-\-verbose\fR
25show all output
26.TP
27\fB\-q\fR, \fB\-\-quiet\fR
28only show errors
29.SS Multi\-manifest options:
30.TP
31\fB\-\-outer\-manifest\fR
32operate starting at the outermost manifest
33.TP
34\fB\-\-no\-outer\-manifest\fR
35do not operate on outer manifests
36.TP
37\fB\-\-this\-manifest\-only\fR
38only operate on this (sub)manifest
39.TP
40\fB\-\-no\-this\-manifest\-only\fR, \fB\-\-all\-manifests\fR
41operate on this manifest and its submanifests
42.PP
43Run `repo help gc` to view the detailed manual.