Edwin Kempin | 619169b | 2012-02-09 15:47:52 +0100 | [diff] [blame] | 1 | gerrit gc |
| 2 | ========= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | gerrit gc - Run the Git garbage collection |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
| 11 | 'ssh' -p <port> <host> 'gerrit gc' |
| 12 | [--all] |
| 13 | <NAME> ... |
| 14 | |
| 15 | DESCRIPTION |
| 16 | ----------- |
| 17 | Runs the Git garbage collection for the specified projects. |
| 18 | |
| 19 | A Gerrit system administrator can define the default parameters that |
| 20 | should be used for running the garbage collection in the user global |
| 21 | Git configuration file of the system user that runs the Gerrit |
| 22 | server. |
| 23 | |
| 24 | Since the user global Git configuration file is overlaid with the Git |
| 25 | configuration on repository level it is possible to specify |
| 26 | repository specific parameters for the garbage collection in the Git |
| 27 | repository configuration of every project. |
| 28 | |
| 29 | ACCESS |
| 30 | ------ |
| 31 | Caller must be a member of the privileged 'Administrators' group, |
| 32 | or have been granted the |
| 33 | link:access-control.html#capability_runGC[Run Garbage Collection] |
| 34 | global capability. |
| 35 | |
| 36 | SCRIPTING |
| 37 | --------- |
| 38 | This command is intended to be used in scripts. |
| 39 | |
| 40 | OPTIONS |
| 41 | ------- |
| 42 | <NAME>:: |
| 43 | Name of the projects for which the Git garbage collection should be run. |
| 44 | |
| 45 | --all:: |
| 46 | If specified the Git garbage collection is run for all projects |
| 47 | sequentially. |
| 48 | |
| 49 | EXAMPLES |
| 50 | -------- |
| 51 | |
| 52 | Run the Git garbage collection for the projects 'myProject' and |
| 53 | 'yourProject': |
| 54 | ===== |
| 55 | $ ssh -p 29418 review.example.com gerrit gc myProject yourProject |
| 56 | collecting garbage for "myProject": |
| 57 | ... |
| 58 | done. |
| 59 | |
| 60 | collecting garbage for "yourProject": |
| 61 | ... |
| 62 | done. |
| 63 | ===== |
| 64 | |
| 65 | Run the Git garbage collection for all projects: |
| 66 | ===== |
| 67 | $ ssh -p 29418 review.example.com gerrit gc --all |
| 68 | ===== |
| 69 | |
| 70 | GERRIT |
| 71 | ------ |
| 72 | Part of link:index.html[Gerrit Code Review] |