| 203 | |
| 204 | == Maintaining Good Performance == |
| 205 | `git-gc` can be used to make your git repository take up less space and increase git's performance. Some git commands will run a "lite" version of `git-gc` automatically, but you may want to run it manually from time to time. Running it is as simple as: |
| 206 | {{{ |
| 207 | git gc |
| 208 | }}} |
| 209 | |
| 210 | It is a good idea to do an "aggressive" gc occasionally, like so (be warned that this can take multiple hours!): |
| 211 | {{{ |
| 212 | # The following git-config commands are only needed on Windows AFAIK |
| 213 | git config pack.threads 1 |
| 214 | git config pack.windowMemory 256m |
| 215 | |
| 216 | git gc --aggressive |
| 217 | }}} |