Skip to content

Commit 556de1a

Browse files
authored
Merge pull request #46 from mike-rambil/devBranch
Dev branch
2 parents e2923eb + 1eec41c commit 556de1a

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

contents/git-maintenance-start.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,21 @@ git maintenance start --schedule=hourly
2929

3030
#### Steps
3131
1. Run `git maintenance start` in your repository.
32+
2. Optionally, use `--schedule=hourly` or `--schedule=daily` to control how often maintenance runs.
33+
3. `Git will now automatically run tasks like garbage collection, pruning unreachable objects, and optimizing internal data structures in the background`.
34+
4. You can stop background maintenance with `git maintenance stop` if needed.
3235

3336

3437
#### ProTips
3538
> [!TIP]
36-
> Set up maintenance on large repos to keep them fast.
39+
> Set up maintenance on large or long-lived repos to keep them fast and healthy.
3740
3841
> [!TIP]
3942
> Use with cron or scheduled tasks for automation.
4043
44+
> [!TIP]
45+
> If you notice Git getting slow, check if maintenance is enabled or run it manually.
46+
4147

4248

4349
#### Links

contents/git-request-pull.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,21 @@ git request-pull main https://github.com/example/repo.git feature-branch
3030

3131

3232
#### Steps
33-
1. Run `git request-pull <start> <url> <end>` to generate a pull request message.
33+
1. Identify the base commit or branch you want to compare from (e.g., main or v1.0).
34+
2. Run `git request-pull <start> <url> <end>` to generate a pull request message.
35+
3. Send the generated message to the project maintainer (e.g., via email or chat).
3436

3537

3638
#### ProTips
3739
> [!TIP]
38-
> Use request-pull to generate a summary for code reviews.
40+
> Use this command when collaborating via email or outside of web-based platforms.
3941
4042
> [!TIP]
4143
> Include a clear start and end point for clarity.
4244
45+
> [!TIP]
46+
> Review the generated message before sending to ensure it accurately describes your changes.
47+
4348

4449

4550
#### Links

toc-source.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"Name": "git maintenance start",
1717
"category": "Maintenance",
1818
"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.",
1920
"command": "git maintenance start",
2021
"examples": [
2122
{
@@ -27,7 +28,12 @@
2728
"description": "Run maintenance tasks every hour for more active repos."
2829
}
2930
],
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+
],
3137
"links": [
3238
{
3339
"label": "Official Docs",
@@ -38,14 +44,16 @@
3844
"author": "mike-rambil",
3945
"last_updated": "2024-06-10",
4046
"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."
4350
]
4451
},
4552
{
4653
"Name": "git request-pull",
4754
"category": "Collaboration",
4855
"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.",
4957
"command": "git request-pull <start> <url> <end>",
5058
"examples": [
5159
{
@@ -58,7 +66,9 @@
5866
}
5967
],
6068
"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)."
6272
],
6373
"links": [
6474
{
@@ -70,8 +80,9 @@
7080
"author": "mike-rambil",
7181
"last_updated": "2024-06-10",
7282
"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."
7586
]
7687
}
7788
]

0 commit comments

Comments
 (0)