|
16 | 16 | "Name": "git maintenance start", |
17 | 17 | "category": "Maintenance", |
18 | 18 | "short_description": "Runs a cronJob in background for the specified repo for periodic maintenance.", |
| 19 | + "long_description": "`git maintenance start` enables background maintenance tasks for your Git repository. It sets up scheduled jobs (using your system’s scheduler, like cron on Unix or Task Scheduler on Windows) to automatically run Git maintenance commands at regular intervals. This keeps your repository fast and healthy by running tasks like garbage collection, commit-graph optimization, and cleanup operations in the background, so you don’t have to remember to do it manually.", |
19 | 20 | "command": "git maintenance start", |
20 | 21 | "examples": [ |
21 | 22 | { |
|
27 | 28 | "description": "Run maintenance tasks every hour for more active repos." |
28 | 29 | } |
29 | 30 | ], |
30 | | - "steps": ["Run `git maintenance start` in your repository."], |
| 31 | + "steps": [ |
| 32 | + "Run `git maintenance start` in your repository.", |
| 33 | + "Optionally, use `--schedule=hourly` or `--schedule=daily` to control how often maintenance runs.", |
| 34 | + "Git will now automatically run tasks like garbage collection, pruning unreachable objects, and optimizing internal data structures in the background.", |
| 35 | + "You can stop background maintenance with `git maintenance stop` if needed." |
| 36 | + ], |
31 | 37 | "links": [ |
32 | 38 | { |
33 | 39 | "label": "Official Docs", |
|
38 | 44 | "author": "mike-rambil", |
39 | 45 | "last_updated": "2024-06-10", |
40 | 46 | "protips": [ |
41 | | - "Set up maintenance on large repos to keep them fast.", |
42 | | - "Use with cron or scheduled tasks for automation." |
| 47 | + "Set up maintenance on large or long-lived repos to keep them fast and healthy.", |
| 48 | + "Use with cron or scheduled tasks for automation.", |
| 49 | + "If you notice Git getting slow, check if maintenance is enabled or run it manually." |
43 | 50 | ] |
44 | 51 | }, |
45 | 52 | { |
46 | 53 | "Name": "git request-pull", |
47 | 54 | "category": "Collaboration", |
48 | 55 | "short_description": "Generate a request to pull changes into a repository.", |
| 56 | + "long_description": "`git request-pull` generates a summary message describing the changes between two commits, which you can send to a project maintainer to request that they pull your changes. This is especially useful for email-based workflows or when collaborating outside of platforms like GitHub. The command outputs a message that includes a comparison summary, a list of commits, and their messages, making it easy for maintainers to review and apply your changes.", |
49 | 57 | "command": "git request-pull <start> <url> <end>", |
50 | 58 | "examples": [ |
51 | 59 | { |
|
58 | 66 | } |
59 | 67 | ], |
60 | 68 | "steps": [ |
61 | | - "Run `git request-pull <start> <url> <end>` to generate a pull request message." |
| 69 | + "Identify the base commit or branch you want to compare from (e.g., main or v1.0).", |
| 70 | + "Run `git request-pull <start> <url> <end>` to generate a pull request message.", |
| 71 | + "Send the generated message to the project maintainer (e.g., via email or chat)." |
62 | 72 | ], |
63 | 73 | "links": [ |
64 | 74 | { |
|
70 | 80 | "author": "mike-rambil", |
71 | 81 | "last_updated": "2024-06-10", |
72 | 82 | "protips": [ |
73 | | - "Use request-pull to generate a summary for code reviews.", |
74 | | - "Include a clear start and end point for clarity." |
| 83 | + "Use this command when collaborating via email or outside of web-based platforms.", |
| 84 | + "Include a clear start and end point for clarity.", |
| 85 | + "Review the generated message before sending to ensure it accurately describes your changes." |
75 | 86 | ] |
76 | 87 | } |
77 | 88 | ] |
|
0 commit comments