enigmare/v2-crawler
1904
1{"id":"doc-quickstart_for_writing_on_github_github_docs-b6c68966","source":"documentation","title":"Quickstart for writing on GitHub - GitHub Docs","url":"https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/quickstart-for-writing-on-github","text":"Example:\n```text\n<picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"YOUR-DARKMODE-IMAGE\">\n <source media=\"(prefers-color-scheme: light)\" srcset=\"YOUR-LIGHTMODE-IMAGE\">\n <img alt=\"YOUR-ALT-TEXT\" src=\"YOUR-DEFAULT-IMAGE\">\n</picture>\n```\n\nExample:\n```html\n<picture>\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://user-images.githubusercontent.com/25423296/163456776-7f95b81a-f1ed-45f7-b7ab-8fa810d529fa.png\">\n <source media=\"(prefers-color-scheme: light)\" srcset=\"https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png\">\n <img alt=\"Shows an illustrated sun in light mode and a moon with stars in dark mode.\" src=\"https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png\">\n</picture>\n```\n\nExample:\n```markdown\n## About me\n\nHi, I'm Mona. You might recognize me as GitHub's mascot.\n```\n\nExample:\n```text\n| Rank | THING-TO-RANK |\n|-----:|---------------|\n| 1| |\n| 2| |\n| 3| |\n```\n\nExample:\n```markdown\n## About me\n\nHi, I'm Mona. You might recognize me as GitHub's mascot.\n\n| Rank | Languages |\n|-----:|-----------|\n| 1| JavaScript|\n| 2| Python |\n| 3| SQL |\n```\n\nExample:\n```text\n<details>\n<summary>My top THINGS-TO-RANK</summary>\n\nYOUR TABLE\n\n</details>\n```\n\nExample:\n```html\n<details open>\n```\n\nExample:\n```html\n<details>\n<summary>My top languages</summary>\n\n| Rank | Languages |\n|-----:|-----------|\n| 1| JavaScript|\n| 2| Python |\n| 3| SQL |\n\n</details>\n```\n\nExample:\n```markdown\n---\n```\n\nExample:\n```markdown\n> QUOTE\n```\n\nExample:\n```markdown\n---\n> If we pull together and commit ourselves, then we can push through anything.\n\n— Mona the Octocat\n```\n\nExample:\n```text\n<!-- COMMENT -->\n```\n\nExample:\n```markdown\n## About me\n\n<!-- TO DO: add more details about me later -->\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.317Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":13,"totalLines":107,"estimatedTokens":476}}2{"id":"doc-learning_to_debug_with_github_copilot_github_doc-06b6f6dd","source":"documentation","title":"Learning to debug with GitHub Copilot - GitHub Docs","url":"https://docs.github.com/en/get-started/learning-to-code/learning-to-debug-with-github-copilot","text":"Example:\n```text\npy bugged_dice_battle.py\n```\n\nExample:\n```text\npython bugged_dice_battle.py\n```\n\nExample:\n```text\nExplain in depth why my code produces the following error and how I can fix it:\n\nTypeError: can only concatenate str (not \"int\") to str\n```\n\nExample:\n```text\npy bugged_factorial_finder.py\n```\n\nExample:\n```text\npython bugged_factorial_finder.py\n```\n\nExample:\n```text\nWhy is the output of this code so much higher than expected? Please explain in depth and suggest a solution.\n```\n\nExample:\n```text\nExplain in depth why my code produces the following error and how I can fix it:\n\nYOUR-ERROR-MESSAGE\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.317Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":40,"estimatedTokens":158}}3{"id":"doc-creating_and_highlighting_code_blocks_github_doc-6c24c9db","source":"documentation","title":"Creating and highlighting code blocks - GitHub Docs","url":"https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks","text":"Example:\n```text\n```\nfunction test() {\n console.log(\"notice the blank line before this function?\");\n}\n```\n```\n\nExample:\n```text\n````\n```\nLook! You can see my backticks.\n```\n````\n```\n\nExample:\n```text\n```ruby\nrequire 'redcarpet'\nmarkdown = Redcarpet.new(\"Hello World!\")\nputs markdown.to_html\n```\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.318Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":28,"estimatedTokens":79}}4{"id":"doc-organizing_information_with_tables_github_docs-299d3d5e","source":"documentation","title":"Organizing information with tables - GitHub Docs","url":"https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables","text":"Example:\n```markdown\n| First Header | Second Header |\n| ------------- | ------------- |\n| Content Cell | Content Cell |\n| Content Cell | Content Cell |\n```\n\nExample:\n```markdown\n| Command | Description |\n| --- | --- |\n| git status | List all new or modified files |\n| git diff | Show file differences that haven't been staged |\n```\n\nExample:\n```markdown\n| Command | Description |\n| --- | --- |\n| `git status` | List all *new or modified* files |\n| `git diff` | Show file differences that **haven't been** staged |\n```\n\nExample:\n```markdown\n| Left-aligned | Center-aligned | Right-aligned |\n| :--- | :---: | ---: |\n| git status | git status | git status |\n| git diff | git diff | git diff |\n```\n\nExample:\n```markdown\n| Name | Character |\n| --- | --- |\n| Backtick | ` |\n| Pipe | \\| |\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.318Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":41,"estimatedTokens":222}}5{"id":"doc-storing_your_secrets_safely_github_docs-04419e37","source":"documentation","title":"Storing your secrets safely - GitHub Docs","url":"https://docs.github.com/en/get-started/learning-to-code/storing-your-secrets-safely","text":"Example:\n```text\nsecret_scanning_ab85fc6f8d7638cf1c11da812da308d43_abcde\n```\n\nExample:\n```yaml\nGH_TOKEN: \"secret_scanning_ab85fc6f8d7638cf1c11da812da308d43_abcde\"\n```\n\nExample:\n```yaml\nGH_TOKEN: ${{ secrets.MY_TOKEN }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.318Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":59}}6{"id":"doc-organizing_information_with_collapsed_sections_g-6c5749c5","source":"documentation","title":"Organizing information with collapsed sections - GitHub Docs","url":"https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections","text":"Example:\n```markdown\n<details>\n\n<summary>Tips for collapsed sections</summary>\n\n### You can add a header\n\nYou can add text within a collapsed section.\n\nYou can add an image or a code block, too.\n\n```ruby\n puts \"Hello World\"\n```\n\n</details>\n```\n\nExample:\n```html\n<details open>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.319Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":25,"estimatedTokens":74}}7{"id":"doc-getting_feedback_on_your_code_from_github_copilo-c6604c46","source":"documentation","title":"Getting feedback on your code from GitHub Copilot - GitHub Docs","url":"https://docs.github.com/en/get-started/learning-to-code/getting-feedback-on-your-code-from-github-copilot","text":"Example:\n```text\nif (Math.random() < INVERT_PROBABILITY) {\n cell.classes.add(\"black\");\n}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.319Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":8,"estimatedTokens":27}}8{"id":"doc-creating_diagrams_github_docs-334f092b","source":"documentation","title":"Creating diagrams - GitHub Docs","url":"https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams","text":"Example:\n```text\nHere is a simple flow chart:\n\n```mermaid\ngraph TD;\n A-->B;\n A-->C;\n B-->D;\n C-->D;\n```\n```\n\nExample:\n```text\n```mermaid\n info\n```\n```\n\nExample:\n```text\n```geojson\n{\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"id\": 1,\n \"properties\": {\n \"ID\": 0\n },\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [-90,35],\n [-90,30],\n [-85,30],\n [-85,35],\n [-90,35]\n ]\n ]\n }\n }\n ]\n}\n```\n```\n\nExample:\n```text\n```topojson\n{\n \"type\": \"Topology\",\n \"transform\": {\n \"scale\": [0.0005000500050005, 0.00010001000100010001],\n \"translate\": [100, 0]\n },\n \"objects\": {\n \"example\": {\n \"type\": \"GeometryCollection\",\n \"geometries\": [\n {\n \"type\": \"Point\",\n \"properties\": {\"prop0\": \"value0\"},\n \"coordinates\": [4000, 5000]\n },\n {\n \"type\": \"LineString\",\n \"properties\": {\"prop0\": \"value0\", \"prop1\": 0},\n \"arcs\": [0]\n },\n {\n \"type\": \"Polygon\",\n \"properties\": {\"prop0\": \"value0\",\n \"prop1\": {\"this\": \"that\"}\n },\n \"arcs\": [[1]]\n }\n ]\n }\n },\n \"arcs\": [[[4000, 0], [1999, 9999], [2000, -9999], [2000, 9999]],[[0, 0], [0, 9999], [2000, 0], [0, -9999], [-2000, 0]]]\n}\n```\n```\n\nExample:\n```text\n```stl\nsolid cube_corner\n facet normal 0.0 -1.0 0.0\n outer loop\n vertex 0.0 0.0 0.0\n vertex 1.0 0.0 0.0\n vertex 0.0 0.0 1.0\n endloop\n endfacet\n facet normal 0.0 0.0 -1.0\n outer loop\n vertex 0.0 0.0 0.0\n vertex 0.0 1.0 0.0\n vertex 1.0 0.0 0.0\n endloop\n endfacet\n facet normal -1.0 0.0 0.0\n outer loop\n vertex 0.0 0.0 0.0\n vertex 0.0 0.0 1.0\n vertex 0.0 1.0 0.0\n endloop\n endfacet\n facet normal 0.577 0.577 0.577\n outer loop\n vertex 1.0 0.0 0.0\n vertex 0.0 1.0 0.0\n vertex 0.0 0.0 1.0\n endloop\n endfacet\nendsolid\n```\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.319Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":125,"estimatedTokens":516}}9{"id":"doc-basic_writing_and_formatting_syntax_github_docs-e51c2371","source":"documentation","title":"Basic writing and formatting syntax - GitHub Docs","url":"https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax","text":"Example:\n```markdown\n# A first-level heading\n## A second-level heading\n### A third-level heading\n```\n\nExample:\n```markdown\nText that is not a quote\n\n> Text that is a quote\n```\n\nExample:\n```markdown\nUse `git status` to list all new or modified files that haven't yet been committed.\n```\n\nExample:\n```markdown\nSome basic Git commands are:\n```\ngit status\ngit add\ngit commit\n```\n```\n\nExample:\n```markdown\nThe background color is `#ffffff` for light mode and `#000000` for dark mode.\n```\n\nExample:\n```markdown\n# Example headings\n\n## Sample Section\n\n## This'll be a _Helpful_ Section About the Greek Letter Θ!\nA heading containing characters not allowed in fragments, UTF-8 characters, two consecutive spaces between the first and second words, and formatting.\n\n## This heading is not unique in the file\n\nTEXT 1\n\n## This heading is not unique in the file\n\nTEXT 2\n\n# Links to the example headings above\n\nLink to the sample section: [Link Text](#sample-section).\n\nLink to the helpful section: [Link Text](#thisll-be-a-helpful-section-about-the-greek-letter-Θ).\n\nLink to the first non-unique section: [Link Text](#this-heading-is-not-unique-in-the-file).\n\nLink to the second non-unique section: [Link Text](#this-heading-is-not-unique-in-the-file-1).\n```\n\nExample:\n```text\n[Contribution guidelines for this project](docs/CONTRIBUTING.md)\n```\n\nExample:\n```markdown\n# Section Heading\n\nSome body text of this section.\n\n<a name=\"my-custom-anchor-point\"></a>\nSome text I want to provide a direct link to, but which doesn't have its own heading.\n\n(… more content…)\n\n[A link to that custom anchor](#my-custom-anchor-point)\n```\n\nExample:\n```markdown\nThis example\nWill span two lines\n```\n\nExample:\n```markdown\nThis example\\\nWill span two lines\n```\n\nExample:\n```markdown\nThis example<br/>\nWill span two lines\n```\n\nExample:\n```markdown\nThis example\n\nWill have a blank line separating both lines\n```\n\nExample:\n```markdown\n- George Washington\n* John Adams\n+ Thomas Jefferson\n```\n\nExample:\n```markdown\n1. James Madison\n2. James Monroe\n3. John Quincy Adams\n```\n\nExample:\n```markdown\n1. First list item\n - First nested list item\n - Second nested list item\n```\n\nExample:\n```markdown\n100. First list item\n - First nested list item\n```\n\nExample:\n```markdown\n100. First list item\n - First nested list item\n - Second nested list item\n```\n\nExample:\n```markdown\n- [x] #739\n- [ ] https://github.com/octo-org/octo-repo/issues/740\n- [ ] Add delight to the experience when all tasks are complete :tada:\n```\n\nExample:\n```text\nHere is a simple footnote[^1].\n\nA footnote can also have multiple lines[^2].\n\n[^1]: My reference.\n[^2]: To add line breaks within a footnote, add 2 spaces to the end of a line. \nThis is a second line.\n```\n\nExample:\n```markdown\n> [!NOTE]\n> Useful information that users should know, even when skimming content.\n\n> [!TIP]\n> Helpful advice for doing things better or more easily.\n\n> [!IMPORTANT]\n> Key information users need to know to achieve their goal.\n\n> [!WARNING]\n> Urgent info that needs immediate user attention to avoid problems.\n\n> [!CAUTION]\n> Advises about risks or negative outcomes of certain actions.\n```\n\nExample:\n```text\n<!-- This content will not appear in the rendered Markdown -->\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.321Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":21,"totalLines":182,"estimatedTokens":807}}10{"id":"doc-developing_your_project_locally_github_docs-4b6b13df","source":"documentation","title":"Developing your project locally - GitHub Docs","url":"https://docs.github.com/en/get-started/learning-to-code/developing-your-project-locally","text":"Example:\n```text\nWhat do I need to install to develop this project locally?\n```\n\nExample:\n```text\nnpm install\n```\n\nExample:\n```text\nnpm start\n```\n\nExample:\n```text\nHow do I start this project locally?\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.322Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":55}}11{"id":"doc-autolinked_references_and_urls_github_docs-d43201d0","source":"documentation","title":"Autolinked references and URLs - GitHub Docs","url":"https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls","text":"Example:\n```markdown\nhttps://github.com/github/docs/labels/enhancement\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.323Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":22}}12{"id":"doc-writing_mathematical_expressions_github_docs-b5e96a86","source":"documentation","title":"Writing mathematical expressions - GitHub Docs","url":"https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions","text":"Example:\n```text\nThis sentence uses `$` delimiters to show math inline: $\\sqrt{3x-1}+(1+x)^2$\n```\n\nExample:\n```text\nThis sentence uses $\\` and \\`$ delimiters to show math inline: $`\\sqrt{3x-1}+(1+x)^2`$\n```\n\nExample:\n```text\n**The Cauchy-Schwarz Inequality**\\\n$$\\left( \\sum_{k=1}^n a_k b_k \\right)^2 \\leq \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right)$$\n```\n\nExample:\n```text\n**The Cauchy-Schwarz Inequality**\n\n```math\n\\left( \\sum_{k=1}^n a_k b_k \\right)^2 \\leq \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right)\n```\n```\n\nExample:\n```text\nThis expression uses `\\$` to display a dollar sign: $`\\sqrt{\\$4}`$\n```\n\nExample:\n```text\nTo split <span>$</span>100 in half, we calculate $100/2$\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.324Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":36,"estimatedTokens":185}}13{"id":"doc-finding_ways_to_contribute_to_open_source_on_git-cb37643f","source":"documentation","title":"Finding ways to contribute to open source on GitHub - GitHub Docs","url":"https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github","text":"Example:\n```text\nI'm looking for a list of open source projects written in Python that are accepting new contributors. Narrow down the list to repositories that use the `good first issue` or `help wanted` labels and have over 100 stars on GitHub.\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.325Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":66}}14{"id":"doc-updating_credentials_from_the_macos_keychain_git-f7948411","source":"documentation","title":"Updating credentials from the macOS Keychain - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/updating-credentials-from-the-macos-keychain","text":"Example:\n```shell\n$ git credential-osxkeychain erase\nhost=github.com\nprotocol=https\n> [Press Return]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.325Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":9,"estimatedTokens":30}}15{"id":"doc-managing_remote_repositories_github_docs-929c8d23","source":"documentation","title":"Managing remote repositories - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/managing-remote-repositories","text":"Example:\n```shell\n$ git remote add origin https://github.com/OWNER/REPOSITORY.git\n# Set a new remote\n\n$ git remote -v\n# Verify new remote\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote add origin https://github.com/octocat/Spoon-Knife.git\n> fatal: remote origin already exists.\n```\n\nExample:\n```shell\nhttps://github.com/OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\ngit@github.com:OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n> origin git@github.com:OWNER/REPOSITORY.git (fetch)\n> origin git@github.com:OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\ngit remote set-url origin https://github.com/OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\ngit remote set-url origin git@github.com:OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin git@github.com:OWNER/REPOSITORY.git (fetch)\n> origin git@github.com:OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote set-url sofake https://github.com/octocat/Spoon-Knife\n> fatal: No such remote 'sofake'\n```\n\nExample:\n```shell\n$ git remote -v\n# View existing remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n\n$ git remote rename origin destination\n# Change remote name from 'origin' to 'destination'\n\n$ git remote -v\n# Verify remote's new name\n> destination https://github.com/OWNER/REPOSITORY.git (fetch)\n> destination https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n# View existing remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n# View current remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n> destination https://github.com/FORKER/REPOSITORY.git (fetch)\n> destination https://github.com/FORKER/REPOSITORY.git (push)\n\n$ git remote rm destination\n# Remove remote\n$ git remote -v\n# Verify it's gone\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote rm sofake\n> error: Could not remove config section 'remote.sofake'\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.326Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":15,"totalLines":121,"estimatedTokens":672}}16{"id":"doc-associating_text_editors_with_git_github_docs-b2f52212","source":"documentation","title":"Associating text editors with Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/associating-text-editors-with-git","text":"Example:\n```shell\ngit config --global core.editor \"code --wait\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"subl -n -w\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"'C:/Program Files (x86)/sublime text 3/subl.exe' -w\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.327Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":102}}17{"id":"doc-setting_your_username_in_git_github_docs-cbc2e46e","source":"documentation","title":"Setting your username in Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/setting-your-username-in-git","text":"Example:\n```shell\ngit config --global user.name \"Mona Lisa\"\n```\n\nExample:\n```shell\n$ git config --global user.name\n> Mona Lisa\n```\n\nExample:\n```shell\ngit config user.name \"Mona Lisa\"\n```\n\nExample:\n```shell\n$ git config user.name\n> Mona Lisa\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.327Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":23,"estimatedTokens":65}}18{"id":"doc-contributing_to_a_project_github_docs-9aebbe5f","source":"documentation","title":"Contributing to a project - GitHub Docs","url":"https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project","text":"Example:\n```shell\ngit clone https://github.com/YOUR-USERNAME/Spoon-Knife\n```\n\nExample:\n```shell\n$ git clone https://github.com/YOUR-USERNAME/Spoon-Knife\n> Cloning into `Spoon-Knife`...\n> remote: Counting objects: 10, done.\n> remote: Compressing objects: 100% (8/8), done.\n> remove: Total 10 (delta 1), reused 10 (delta 1)\n> Unpacking objects: 100% (10/10), done.\n```\n\nExample:\n```shell\ngit branch BRANCH-NAME\ngit checkout BRANCH-NAME\n```\n\nExample:\n```shell\ngit add .\ngit commit -m \"a short description of the change\"\n```\n\nExample:\n```shell\ngit push\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.329Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":33,"estimatedTokens":142}}19{"id":"doc-configuring_git_to_handle_line_endings_github_do-be75f1b9","source":"documentation","title":"Configuring Git to handle line endings - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/configuring-git-to-handle-line-endings","text":"Example:\n```shell\n$ git config --global core.autocrlf input\n# Configure Git to ensure line endings in files you checkout are correct for macOS\n```\n\nExample:\n```shell\n$ git config --global core.autocrlf true\n# Configure Git to ensure line endings in files you checkout are correct for Windows.\n# For compatibility, line endings are converted to Unix style when you commit files.\n```\n\nExample:\n```shell\n$ git config --global core.autocrlf input\n# Configure Git to ensure line endings in files you checkout are correct for Linux\n```\n\nExample:\n```text\n# Set the default behavior, in case people don't have core.autocrlf set.\n* text=auto\n\n# Explicitly declare text files you want to always be normalized and converted\n# to native line endings on checkout.\n*.c text\n*.h text\n\n# Declare files that will always have CRLF line endings on checkout.\n*.sln text eol=crlf\n\n# Denote all files that are truly binary and should not be modified.\n*.png binary\n*.jpg binary\n```\n\nExample:\n```text\ngit add . -u\ngit commit -m \"Saving files before refreshing line endings\"\n```\n\nExample:\n```text\ngit add --renormalize .\n```\n\nExample:\n```text\ngit status\n```\n\nExample:\n```text\ngit commit -m \"Normalize all the line endings\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.330Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":59,"estimatedTokens":304}}20{"id":"doc-caching_your_github_credentials_in_git_github_do-b5ec8ba5","source":"documentation","title":"Caching your GitHub credentials in Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/caching-your-github-credentials-in-git","text":"Example:\n```shell\nbrew install git\n```\n\nExample:\n```shell\nbrew install --cask git-credential-manager\n```\n\nExample:\n```bash\ngit config --global credential.gitHubAccountFiltering \"false\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.330Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":51}}21{"id":"doc-ignoring_files_github_docs-2e5af190","source":"documentation","title":"Ignoring files - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/ignoring-files","text":"Example:\n```shell\ntouch .gitignore\n```\n\nExample:\n```shell\ngit rm --cached FILENAME\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.330Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":25}}22{"id":"doc-contributing_to_open_source_github_docs-95341135","source":"documentation","title":"Contributing to open source - GitHub Docs","url":"https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-open-source","text":"Example:\n```text\nCan you summarize the key points and next steps from this issue?\n```\n\nExample:\n```text\ngit clone https://github.com/YOUR-USERNAME/docs\n```\n\nExample:\n```text\ngit checkout -b YOUR_TOPIC_BRANCH\n```\n\nExample:\n```text\ngit add .\ngit commit -m \"a short description of the change\"\n```\n\nExample:\n```text\ngit push\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.331Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":27,"estimatedTokens":85}}23{"id":"doc-using_git_rebase_on_the_command_line_github_docs-385fce18","source":"documentation","title":"Using Git rebase on the command line - GitHub Docs","url":"https://docs.github.com/en/get-started/using-git/using-git-rebase-on-the-command-line","text":"Example:\n```text\npick 1fc6c95 Patch A\npick 6b2481b Patch B\npick dd1475d something I want to split\npick c619268 A fix for Patch B\npick fa39187 something to add to patch A\npick 4ca2acc i cant' typ goods\npick 7b36971 something to move before patch B\n```\n\nExample:\n```text\npick 1fc6c95 Patch A\nsquash fa39187 something to add to patch A\npick 7b36971 something to move before patch B\npick 6b2481b Patch B\nfixup c619268 A fix for Patch B\nedit dd1475d something I want to split\nreword 4ca2acc i cant' typ goods\n```\n\nExample:\n```text\n# This is a combination of two commits.\n# The first commit's message is:\n\nPatch A\n\n# This is the 2nd commit message:\n\nsomething to add to patch A\n\n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n# Not currently on any branch.\n# Changes to be committed:\n# (use \"git reset HEAD <file>...\" to unstage)\n#\n# modified: a\n#\n```\n\nExample:\n```shell\nYou can amend the commit now, with\n\n git commit --amend\n\nOnce you are satisfied with your changes, run\n\n git rebase --continue\n```\n\nExample:\n```text\ni cant' typ goods\n\n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n# Not currently on any branch.\n# Changes to be committed:\n# (use \"git reset HEAD^1 <file>...\" to unstage)\n#\n# modified: a\n#\n```\n\nExample:\n```shell\n# Don't override changes\n$ git push origin main --force-with-lease\n\n# Override changes\n$ git push origin main --force\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.331Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":78,"estimatedTokens":390}}24{"id":"doc-troubleshooting_the_2_gib_push_limit_github_docs-3079a7be","source":"documentation","title":"Troubleshooting the 2 GiB push limit - GitHub Docs","url":"https://docs.github.com/en/get-started/using-git/troubleshooting-the-2-gb-push-limit","text":"Example:\n```shell\ngit log --oneline --reverse refs/heads/BRANCH-NAME | awk 'NR % 1000 == 0'\n```\n\nExample:\n```shell\ngit push REMOTE-NAME +<YOUR_COMMIT_SHA_NUMBER>:refs/heads/BRANCH-NAME\n```\n\nExample:\n```shell\ngit push REMOTE-NAME --mirror\n```\n\nExample:\n```shell\nstep_commits=$(git log --oneline --reverse refs/heads/BRANCH-NAME | awk 'NR % 1000 == 0')\necho \"$step_commits\" | while read commit message; do git push REMOTE-NAME +$commit:refs/heads/BRANCH-NAME; done\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.332Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":120}}25{"id":"doc-dealing_with_non_fast_forward_errors_github_docs-42337566","source":"documentation","title":"Dealing with non-fast-forward errors - GitHub Docs","url":"https://docs.github.com/en/get-started/using-git/dealing-with-non-fast-forward-errors","text":"Example:\n```shell\n$ git push origin main\n> To https://github.com/USERNAME/REPOSITORY.git\n> ! [rejected] main -> main (non-fast-forward)\n> error: failed to push some refs to 'https://github.com/USERNAME/REPOSITORY.git'\n> To prevent you from losing history, non-fast-forward updates were rejected\n> Merge the remote changes (e.g. 'git pull') before pushing again. See the\n> 'Note about fast-forwards' section of 'git push --help' for details.\n```\n\nExample:\n```shell\n$ git fetch origin\n# Fetches updates made to an online repository\n$ git merge origin YOUR_BRANCH_NAME\n# Merges updates made online with your local work\n```\n\nExample:\n```shell\n$ git pull origin YOUR_BRANCH_NAME\n# Grabs online updates and merges them with your local work\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.332Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":26,"estimatedTokens":190}}26{"id":"doc-splitting_a_subfolder_out_into_a_new_repository_-9b6544e3","source":"documentation","title":"Splitting a subfolder out into a new repository - GitHub Docs","url":"https://docs.github.com/en/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository","text":"Example:\n```shell\ngit clone https://github.com/USERNAME/REPOSITORY-NAME\n```\n\nExample:\n```shell\ncd REPOSITORY-NAME\n```\n\nExample:\n```shell\n$ git filter-repo --path FOLDER-NAME/\n# Filter the specified branch in your directory and remove empty commits\n```\n\nExample:\n```shell\n$ git filter-repo --subdirectory-filter FOLDER-NAME\n# Filter the specific branch by using a single sub-directory as the root for the new repository\n```\n\nExample:\n```shell\ngit remote add origin https://github.com/USERNAME/REPOSITORY-NAME.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin https://github.com/USERNAME/NEW-REPOSITORY-NAME.git (fetch)\n> origin https://github.com/USERNAME/NEW-REPOSITORY-NAME.git (push)\n```\n\nExample:\n```shell\ngit push -u origin BRANCH-NAME\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.332Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":41,"estimatedTokens":197}}27{"id":"doc-getting_changes_from_a_remote_repository_github_-a488a8b9","source":"documentation","title":"Getting changes from a remote repository - GitHub Docs","url":"https://docs.github.com/en/get-started/using-git/getting-changes-from-a-remote-repository","text":"Example:\n```shell\n$ git clone https://github.com/USERNAME/REPOSITORY.git\n# Clones a repository to your computer\n```\n\nExample:\n```shell\n$ git fetch REMOTE-NAME\n# Fetches updates made to a remote repository\n```\n\nExample:\n```shell\n$ git merge REMOTE-NAME/BRANCH-NAME\n# Merges updates made online with your local work\n```\n\nExample:\n```shell\n$ git pull REMOTE-NAME BRANCH-NAME\n# Grabs online updates and merges them with your local work\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.333Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":25,"estimatedTokens":113}}28{"id":"doc-pushing_commits_to_a_remote_repository_github_do-404890fb","source":"documentation","title":"Pushing commits to a remote repository - GitHub Docs","url":"https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository","text":"Example:\n```shell\ngit push REMOTE-NAME BRANCH-NAME\n```\n\nExample:\n```shell\ngit push REMOTE-NAME LOCAL-BRANCH-NAME:REMOTE-BRANCH-NAME\n```\n\nExample:\n```shell\ngit push REMOTE-NAME TAG-NAME\n```\n\nExample:\n```shell\ngit push REMOTE-NAME --tags\n```\n\nExample:\n```shell\ngit push REMOTE-NAME :BRANCH-NAME\n```\n\nExample:\n```shell\ngit remote add upstream THEIR_REMOTE_URL\n```\n\nExample:\n```shell\ngit fetch upstream\n# Grab the upstream remote's branches\n> remote: Counting objects: 75, done.\n> remote: Compressing objects: 100% (53/53), done.\n> remote: Total 62 (delta 27), reused 44 (delta 9)\n> Unpacking objects: 100% (62/62), done.\n> From https://github.com/OCTOCAT/REPO\n> * [new branch] main -> upstream/main\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.333Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":43,"estimatedTokens":181}}29{"id":"doc-resolving_merge_conflicts_after_a_git_rebase_git-d6d455bb","source":"documentation","title":"Resolving merge conflicts after a Git rebase - GitHub Docs","url":"https://docs.github.com/en/get-started/using-git/resolving-merge-conflicts-after-a-git-rebase","text":"Example:\n```shell\nerror: could not apply fa39187... something to add to patch A\n\nWhen you have resolved this problem, run \"git rebase --continue\".\nIf you prefer to skip this patch, run \"git rebase --skip\" instead.\nTo check out the original branch and stop rebasing, run \"git rebase --abort\".\nCould not apply fa39187f3c3dfd2ab5faa38ac01cf3de7ce2e841... Change fake file\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.333Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":11,"estimatedTokens":97}}30{"id":"doc-associating_text_editors_with_git_github_docs-152c0f41","source":"documentation","title":"Associating text editors with Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/associating-text-editors-with-git?platform=mac","text":"Example:\n```shell\ngit config --global core.editor \"code --wait\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"subl -n -w\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"'C:/Program Files (x86)/sublime text 3/subl.exe' -w\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.333Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":102}}31{"id":"doc-setting_your_username_in_git_github_docs-16550879","source":"documentation","title":"Setting your username in Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/setting-your-username-in-git?platform=linux","text":"Example:\n```shell\ngit config --global user.name \"Mona Lisa\"\n```\n\nExample:\n```shell\n$ git config --global user.name\n> Mona Lisa\n```\n\nExample:\n```shell\ngit config user.name \"Mona Lisa\"\n```\n\nExample:\n```shell\n$ git config user.name\n> Mona Lisa\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.334Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":23,"estimatedTokens":65}}32{"id":"doc-caching_your_github_credentials_in_git_github_do-66e36cb4","source":"documentation","title":"Caching your GitHub credentials in Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/caching-your-github-credentials-in-git?platform=mac","text":"Example:\n```shell\nbrew install git\n```\n\nExample:\n```shell\nbrew install --cask git-credential-manager\n```\n\nExample:\n```bash\ngit config --global credential.gitHubAccountFiltering \"false\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.334Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":51}}33{"id":"doc-associating_text_editors_with_git_github_docs-171e2632","source":"documentation","title":"Associating text editors with Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/associating-text-editors-with-git?platform=windows","text":"Example:\n```shell\ngit config --global core.editor \"code --wait\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"subl -n -w\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"'C:/Program Files (x86)/sublime text 3/subl.exe' -w\"\n```\n\nExample:\n```shell\ngit config --global core.editor \"'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.334Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":102}}34{"id":"doc-caching_your_github_credentials_in_git_github_do-ea21307a","source":"documentation","title":"Caching your GitHub credentials in Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/caching-your-github-credentials-in-git?platform=linux","text":"Example:\n```shell\nbrew install git\n```\n\nExample:\n```shell\nbrew install --cask git-credential-manager\n```\n\nExample:\n```bash\ngit config --global credential.gitHubAccountFiltering \"false\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.335Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":51}}35{"id":"doc-github_docs_api_github_docs-6a1d30dd","source":"documentation","title":"GitHub Docs API - GitHub Docs","url":"https://docs.github.com/en/get-started/using-github-docs/github-docs-api","text":"Example:\n```shell\ncurl \"https://docs.github.com/api/article/body?pathname=/en/get-started/start-your-journey/what-is-github\"\n```\n\nExample:\n```shell\ncurl \"https://docs.github.com/api/article/body?pathname=/en/enterprise-cloud@latest/admin/overview/about-github-enterprise-cloud\"\n```\n\nExample:\n```shell\ncurl \"https://docs.github.com/api/article/meta?pathname=/en/get-started/start-your-journey/what-is-github\"\n```\n\nExample:\n```shell\ncurl \"https://docs.github.com/api/article?pathname=/en/get-started/start-your-journey/what-is-github\"\n```\n\nExample:\n```shell\ncurl \"https://docs.github.com/api/pagelist/en/free-pro-team@latest\"\n```\n\nExample:\n```shell\ncurl \"https://docs.github.com/api/search/v1?query=actions&client_name=docs-api-example&version=free-pro-team&language=en\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.335Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":197}}36{"id":"doc-managing_remote_repositories_github_docs-db6f0408","source":"documentation","title":"Managing remote repositories - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/managing-remote-repositories?platform=windows","text":"Example:\n```shell\n$ git remote add origin https://github.com/OWNER/REPOSITORY.git\n# Set a new remote\n\n$ git remote -v\n# Verify new remote\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote add origin https://github.com/octocat/Spoon-Knife.git\n> fatal: remote origin already exists.\n```\n\nExample:\n```shell\nhttps://github.com/OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\ngit@github.com:OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n> origin git@github.com:OWNER/REPOSITORY.git (fetch)\n> origin git@github.com:OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\ngit remote set-url origin https://github.com/OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\ngit remote set-url origin git@github.com:OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin git@github.com:OWNER/REPOSITORY.git (fetch)\n> origin git@github.com:OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote set-url sofake https://github.com/octocat/Spoon-Knife\n> fatal: No such remote 'sofake'\n```\n\nExample:\n```shell\n$ git remote -v\n# View existing remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n\n$ git remote rename origin destination\n# Change remote name from 'origin' to 'destination'\n\n$ git remote -v\n# Verify remote's new name\n> destination https://github.com/OWNER/REPOSITORY.git (fetch)\n> destination https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n# View existing remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n# View current remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n> destination https://github.com/FORKER/REPOSITORY.git (fetch)\n> destination https://github.com/FORKER/REPOSITORY.git (push)\n\n$ git remote rm destination\n# Remove remote\n$ git remote -v\n# Verify it's gone\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote rm sofake\n> error: Could not remove config section 'remote.sofake'\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.335Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":15,"totalLines":121,"estimatedTokens":672}}37{"id":"doc-managing_remote_repositories_github_docs-289599bf","source":"documentation","title":"Managing remote repositories - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/managing-remote-repositories?platform=linux","text":"Example:\n```shell\n$ git remote add origin https://github.com/OWNER/REPOSITORY.git\n# Set a new remote\n\n$ git remote -v\n# Verify new remote\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote add origin https://github.com/octocat/Spoon-Knife.git\n> fatal: remote origin already exists.\n```\n\nExample:\n```shell\nhttps://github.com/OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\ngit@github.com:OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n> origin git@github.com:OWNER/REPOSITORY.git (fetch)\n> origin git@github.com:OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\ngit remote set-url origin https://github.com/OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\ngit remote set-url origin git@github.com:OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin git@github.com:OWNER/REPOSITORY.git (fetch)\n> origin git@github.com:OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote set-url sofake https://github.com/octocat/Spoon-Knife\n> fatal: No such remote 'sofake'\n```\n\nExample:\n```shell\n$ git remote -v\n# View existing remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n\n$ git remote rename origin destination\n# Change remote name from 'origin' to 'destination'\n\n$ git remote -v\n# Verify remote's new name\n> destination https://github.com/OWNER/REPOSITORY.git (fetch)\n> destination https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n# View existing remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n# View current remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n> destination https://github.com/FORKER/REPOSITORY.git (fetch)\n> destination https://github.com/FORKER/REPOSITORY.git (push)\n\n$ git remote rm destination\n# Remove remote\n$ git remote -v\n# Verify it's gone\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote rm sofake\n> error: Could not remove config section 'remote.sofake'\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.336Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":15,"totalLines":121,"estimatedTokens":672}}38{"id":"doc-caching_your_github_credentials_in_git_github_do-e0aa09d4","source":"documentation","title":"Caching your GitHub credentials in Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/caching-your-github-credentials-in-git?platform=windows","text":"Example:\n```shell\nbrew install git\n```\n\nExample:\n```shell\nbrew install --cask git-credential-manager\n```\n\nExample:\n```bash\ngit config --global credential.gitHubAccountFiltering \"false\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.336Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":51}}39{"id":"doc-setting_your_username_in_git_github_docs-1f4abf42","source":"documentation","title":"Setting your username in Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/setting-your-username-in-git?platform=mac","text":"Example:\n```shell\ngit config --global user.name \"Mona Lisa\"\n```\n\nExample:\n```shell\n$ git config --global user.name\n> Mona Lisa\n```\n\nExample:\n```shell\ngit config user.name \"Mona Lisa\"\n```\n\nExample:\n```shell\n$ git config user.name\n> Mona Lisa\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.336Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":23,"estimatedTokens":65}}40{"id":"doc-managing_remote_repositories_github_docs-c2bb2188","source":"documentation","title":"Managing remote repositories - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/managing-remote-repositories?platform=mac","text":"Example:\n```shell\n$ git remote add origin https://github.com/OWNER/REPOSITORY.git\n# Set a new remote\n\n$ git remote -v\n# Verify new remote\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote add origin https://github.com/octocat/Spoon-Knife.git\n> fatal: remote origin already exists.\n```\n\nExample:\n```shell\nhttps://github.com/OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\ngit@github.com:OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n> origin git@github.com:OWNER/REPOSITORY.git (fetch)\n> origin git@github.com:OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\ngit remote set-url origin https://github.com/OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\ngit remote set-url origin git@github.com:OWNER/REPOSITORY.git\n```\n\nExample:\n```shell\n$ git remote -v\n# Verify new remote URL\n> origin git@github.com:OWNER/REPOSITORY.git (fetch)\n> origin git@github.com:OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote set-url sofake https://github.com/octocat/Spoon-Knife\n> fatal: No such remote 'sofake'\n```\n\nExample:\n```shell\n$ git remote -v\n# View existing remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n\n$ git remote rename origin destination\n# Change remote name from 'origin' to 'destination'\n\n$ git remote -v\n# Verify remote's new name\n> destination https://github.com/OWNER/REPOSITORY.git (fetch)\n> destination https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n# View existing remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote -v\n# View current remotes\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n> destination https://github.com/FORKER/REPOSITORY.git (fetch)\n> destination https://github.com/FORKER/REPOSITORY.git (push)\n\n$ git remote rm destination\n# Remove remote\n$ git remote -v\n# Verify it's gone\n> origin https://github.com/OWNER/REPOSITORY.git (fetch)\n> origin https://github.com/OWNER/REPOSITORY.git (push)\n```\n\nExample:\n```shell\n$ git remote rm sofake\n> error: Could not remove config section 'remote.sofake'\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.337Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":15,"totalLines":121,"estimatedTokens":672}}41{"id":"doc-setting_your_username_in_git_github_docs-249dd567","source":"documentation","title":"Setting your username in Git - GitHub Docs","url":"https://docs.github.com/en/get-started/git-basics/setting-your-username-in-git?platform=windows","text":"Example:\n```shell\ngit config --global user.name \"Mona Lisa\"\n```\n\nExample:\n```shell\n$ git config --global user.name\n> Mona Lisa\n```\n\nExample:\n```shell\ngit config user.name \"Mona Lisa\"\n```\n\nExample:\n```shell\n$ git config user.name\n> Mona Lisa\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.337Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":23,"estimatedTokens":65}}42{"id":"doc-creating_a_repository_for_your_project_on_github-605688b9","source":"documentation","title":"Creating a repository for your project on GitHub - GitHub Docs","url":"https://docs.github.com/en/get-started/start-your-journey/creating-a-repository-for-your-project-on-github","text":"Example:\n```text\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <title>Stargazers log</title>\n </head>\n <body>\n <h1>Stargazers log</h1>\n <p>A log of the repositories I've starred.</p>\n </body>\n</html>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.338Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":16,"estimatedTokens":64}}43{"id":"doc-deploying_your_website_automatically_github_docs-596e28ba","source":"documentation","title":"Deploying your website automatically - GitHub Docs","url":"https://docs.github.com/en/get-started/start-your-journey/deploying-your-website-automatically","text":"Example:\n```text\nname: Deploy to GitHub Pages\n\non:\n push:\n branches:\n - main\n\npermissions:\n contents: read\n pages: write\n id-token: write\n\njobs:\n deploy:\n runs-on: ubuntu-latest\n environment:\n name: github-pages\n url: ${{ steps.deployment.outputs.page_url }}\n steps:\n - name: Checkout\n uses: actions/checkout@v6\n - name: Setup Pages\n uses: actions/configure-pages@v5\n - name: Upload artifact\n uses: actions/upload-pages-artifact@v4\n with:\n path: '.'\n - name: Deploy to GitHub Pages\n id: deployment\n uses: actions/deploy-pages@v4\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.338Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":35,"estimatedTokens":163}}44{"id":"doc-writing_and_storing_your_code_github_docs-87f0f760","source":"documentation","title":"Writing and storing your code - GitHub Docs","url":"https://docs.github.com/en/get-started/start-your-journey/writing-and-storing-your-code","text":"Example:\n```text\nCreate a starred repositories page for my software project. Add:\n- events.json with sample data for a few starred repositories\n- style.css to style a simple list\n- script.js to fetch events.json and render the list\n- an update to index.html that links style.css and script.js\n\nUse the code written in https://docs.github.com/get-started/start-your-journey/creating-and-changing-your-code.\n```\n\nExample:\n```text\n[\n { \"name\": \"octocat/Hello-World\", \"starred\": \"2024-01-15\" },\n { \"name\": \"github/docs\", \"starred\": \"2024-02-02\" },\n { \"name\": \"octo-org/octo-repo\", \"starred\": \"2024-03-21\" }\n]\n```\n\nExample:\n```text\nbody {\n font-family: sans-serif;\n margin: 2rem;\n}\n\nul {\n list-style: none;\n padding: 0;\n}\n\nli {\n padding: 0.5rem 0;\n border-bottom: 1px solid #ddd;\n}\n```\n\nExample:\n```text\nfetch(\"events.json\")\n .then((response) => response.json())\n .then((events) => {\n const list = document.querySelector(\"#starred\");\n events.forEach((event) => {\n const item = document.createElement(\"li\");\n item.textContent = `${event.name} — starred ${event.starred}`;\n list.appendChild(item);\n });\n });\n```\n\nExample:\n```text\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <title>Stargazers log</title>\n <link rel=\"stylesheet\" href=\"style.css\">\n </head>\n <body>\n <h1>Stargazers log</h1>\n <p>A log of the repositories I've starred.</p>\n <ul id=\"starred\"></ul>\n <script src=\"script.js\"></script>\n </body>\n</html>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.339Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":71,"estimatedTokens":377}}45{"id":"doc-reviewing_your_proposed_changes_github_docs-ca6e70a5","source":"documentation","title":"Reviewing your proposed changes - GitHub Docs","url":"https://docs.github.com/en/get-started/start-your-journey/reviewing-your-proposed-changes","text":"Example:\n```text\nReview my changes for bugs, missing error handling, and accessibility issues.\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.340Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":28}}46{"id":"doc-reusing_other_people_s_code_in_your_projects_git-cdeb3c97","source":"documentation","title":"Reusing other people's code in your projects - GitHub Docs","url":"https://docs.github.com/en/get-started/learning-to-code/reusing-other-peoples-code-in-your-projects","text":"Example:\n```python\n# Initialize the factorial result to 1\nfactorial = 1\n\n# Initialize the input number to 6\nnumber = 6\n\n# Loop from 1 to number (inclusive) and multiply factorial by each number\nfor i in range(1, number + 1):\n factorial *= i\n\nprint(f\"The factorial of {number} is {factorial}\")\n```\n\nExample:\n```text\nExplain this program.\n```\n\nExample:\n```text\nWrap the Python code above in a function.\n```\n\nExample:\n```text\ndef calculate_factorial(number):\n # Initialize the factorial result to 1\n factorial = 1\n\n # Loop from 1 to number (inclusive) and multiply factorial by each number\n for i in range(1, number + 1):\n factorial *= i\n\n return factorial\n```\n\nExample:\n```text\nprint(calculate_factorial(5))\nprint(calculate_factorial(7))\nprint(calculate_factorial(9))\nprint(calculate_factorial(10))\n```\n\nExample:\n```text\ndef calculate_factorial(number):\n # Initialize the factorial result to 1\n factorial = 1\n\n # Loop from 1 to number (inclusive) and multiply factorial by each number\n for i in range(1, number + 1):\n factorial *= i\n\n return factorial\n\nprint(calculate_factorial(5))\nprint(calculate_factorial(7))\nprint(calculate_factorial(9))\nprint(calculate_factorial(10))\n```\n\nExample:\n```text\nIs there a Python library with a function for calculating a factorial?\n```\n\nExample:\n```text\nFind the GitHub repository containing the code for the math module in Python.\n```\n\nExample:\n```text\nHow do I use the factorial function of the math module in my Python project?\n```\n\nExample:\n```text\nimport math\n\n# Calculate the factorial of a number\nnumber = 5\nresult = math.factorial(number)\n\nprint(f\"The factorial of {number} is {result}\")\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.344Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":10,"totalLines":91,"estimatedTokens":424}}47{"id":"doc-setting_up_copilot_for_learning_to_code_github_d-bbf4b1ac","source":"documentation","title":"Setting up Copilot for learning to code - GitHub Docs","url":"https://docs.github.com/en/get-started/learning-to-code/setting-up-copilot-for-learning-to-code","text":"Example:\n```text\n{\n \"github.copilot.enable\": {\n \"*\": false\n }\n}\n```\n\nExample:\n```text\nI am learning to code. You are to act as a tutor; assume I am a beginning coder. Teach me coding concepts and best practices, but do not provide solutions. Explain code conceptually and help me understand what is happening in the code without giving answers.\n\nDo not provide code snippets, even if I ask you for implementation advice in my prompts. Teach me all the basic coding concepts in your answers. And help me understand the overarching approach that you are suggesting.\n\nWhenever possible, share links to relevant external documentation and sources of truth.\n\nAt the end of every response, add \"Always check the correctness of AI-generated responses.\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.345Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":21,"estimatedTokens":194}}48{"id":"doc-finding_and_understanding_example_code_github_do-2533b715","source":"documentation","title":"Finding and understanding example code - GitHub Docs","url":"https://docs.github.com/en/get-started/learning-to-code/finding-and-understanding-example-code","text":"Example:\n```markdown\n{% include license-overview.html license-id=\"agpl-3.0\" %}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.346Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":24}}49{"id":"doc-getting_started_with_git_github_docs-435dce02","source":"documentation","title":"Getting started with Git - GitHub Docs","url":"https://docs.github.com/en/get-started/learning-to-code/getting-started-with-git","text":"Example:\n```text\nHello, World!\n\nThis is a demo project for learning how to use Git.\n```\n\nExample:\n```text\ngh auth login\n```\n\nExample:\n```text\ngh copilot explain \"git blame\"\n```\n\nExample:\n```text\ngit blame README.md\n```\n\nExample:\n```text\ngh copilot suggest \"Show me the blame for line 1 of README.md\"\n```\n\nExample:\n```text\ngit blame -L 1,1 README.md\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:00.346Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":33,"estimatedTokens":92}}50 