mirror of
https://github.com/mike-rambil/Advanced-Git.git
synced 2025-12-30 14:09:30 -06:00
feat: add example for git request-pull in toc-source.json to enhance documentation clarity
This commit is contained in:
@@ -56,6 +56,10 @@
|
||||
"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.",
|
||||
"command": "git request-pull <start> <url> <end>",
|
||||
"examples": [
|
||||
{
|
||||
"code": "git request-pull main https://github.com/example/repo.git feature-branch",
|
||||
"description": "Generates a summary like:\n\nThe following changes since commit 1234567... (main):\n\n Some previous commit message\n\nare available in the Git repository at:\n\n https://github.com/example/repo.git feature-branch\n\nfor you to fetch changes up to 89abcde... (feature-branch):\n\n New feature commit message\n Another commit message\n\n----------------------------------------------------------------\n file1.txt | 10 ++++++++++\n file2.js | 5 +++++\n 2 files changed, 15 insertions(+)"
|
||||
},
|
||||
{
|
||||
"code": "git request-pull v1.0 https://github.com/example/repo.git v1.1",
|
||||
"description": "Generate a pull request message from v1.0 to v1.1."
|
||||
|
||||
Reference in New Issue
Block a user