0
0
GitHow-ToBeginner · 4 min read

How to Use GitHub CLI: Basic Commands and Examples

Use the gh command followed by an action like repo, issue, or pr to interact with GitHub from your terminal. For example, gh repo clone owner/repo clones a repository, and gh pr create starts a pull request.
📐

Syntax

The basic syntax of GitHub CLI commands is gh [command] [subcommand] [flags]. Here:

  • gh: The GitHub CLI tool.
  • command: The main action like repo, issue, or pr.
  • subcommand: Specific operation under the command, such as clone, list, or create.
  • flags: Optional settings to customize the command behavior.
bash
gh [command] [subcommand] [flags]
💻

Example

This example shows how to clone a repository, create a new issue, and open a pull request using GitHub CLI.

bash
gh repo clone cli/cli
cd cli
# Create a new issue
gh issue create --title "Bug found" --body "There is a bug in the CLI tool."
# Create a pull request
gh pr create --title "Fix bug" --body "This PR fixes the bug." --base main --head fix-branch
Output
Cloning into 'cli'... remote: Enumerating objects: 1000, done. remote: Counting objects: 100% (1000/1000), done. remote: Compressing objects: 100% (800/800), done. remote: Total 1000 (delta 200), reused 900 (delta 150), pack-reused 0 Receiving objects: 100% (1000/1000), 2.5 MiB | 1.2 MiB/s, done. Creating issue in cli/cli Issue created: https://github.com/cli/cli/issues/1234 Creating pull request Pull request created: https://github.com/cli/cli/pull/5678
⚠️

Common Pitfalls

Common mistakes when using GitHub CLI include:

  • Not authenticating with gh auth login before running commands that require permissions.
  • Using incorrect repository names or missing owner names in commands.
  • Forgetting to specify the base and head branches when creating pull requests.

Always check your current authentication status with gh auth status.

bash
gh pr create --title "Fix bug"
# Error: authentication required

# Correct way:
gh auth login
gh pr create --title "Fix bug" --base main --head fix-branch
Output
Error: authentication required # After login Creating pull request Pull request created: https://github.com/owner/repo/pull/1
📊

Quick Reference

CommandDescription
gh auth loginAuthenticate your GitHub account
gh repo clone owner/repoClone a GitHub repository
gh issue create --title --body <body></td><td>Create a new issue</td></tr><tr><td>gh pr create --title <title> --body <body> --base <branch> --head <branch></td><td>Create a pull request</td></tr><tr><td>gh pr list</td><td>List open pull requests</td></tr><tr><td>gh issue list</td><td>List open issues</td></tr></tbody></table></div></div></div><div class="qna-section"><div class="qna-section-header"><div class="qna-section-icon">✅</div><h2 class="qna-section-title">Key Takeaways</h2></div><div class="qna-section-body"><div class="qna-takeaways"><div class="qna-takeaway"><div class="qna-takeaway-check"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"></polyline></svg></div><span class="qna-takeaway-text">Always authenticate first using <code>gh auth login</code> to access private repositories and actions.</span></div><div class="qna-takeaway"><div class="qna-takeaway-check"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"></polyline></svg></div><span class="qna-takeaway-text">Use <code>gh repo clone owner/repo</code> to quickly clone repositories from the terminal.</span></div><div class="qna-takeaway"><div class="qna-takeaway-check"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"></polyline></svg></div><span class="qna-takeaway-text">Create issues and pull requests directly with <code>gh issue create</code> and <code>gh pr create</code> commands.</span></div><div class="qna-takeaway"><div class="qna-takeaway-check"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"></polyline></svg></div><span class="qna-takeaway-text">Check your authentication status anytime with <code>gh auth status</code> to avoid permission errors.</span></div><div class="qna-takeaway"><div class="qna-takeaway-check"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"></polyline></svg></div><span class="qna-takeaway-text">Specify base and head branches clearly when creating pull requests to avoid mistakes.</span></div></div></div></div><hr class="light-hr-border mt-5 mb-0"/><div class="qna-related-mesh"><div class="qna-mesh-block"><p class="qna-mesh-label">Related by keyword</p><div class="qna-mesh-list"><a href="/codefly/learn/git/qna/git-vs-github-difference" class="qna-mesh-item token-match"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">Git vs GitHub: Key Differences and When to Use Each</span><span class="qna-mesh-item-tag muted">Getting Started</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-see-changes-in-git" class="qna-mesh-item token-match"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to See Changes in Git: Commands and Examples</span><span class="qna-mesh-item-tag muted">Basic Commands</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-use-git-add" class="qna-mesh-item token-match"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Use git add: Basic Syntax and Examples</span><span class="qna-mesh-item-tag muted">Basic Commands</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-use-git-commit" class="qna-mesh-item token-match"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Use git commit: Basic Syntax and Examples</span><span class="qna-mesh-item-tag muted">Basic Commands</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-list-all-branches-in-git" class="qna-mesh-item token-match"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to List All Branches in Git: Commands and Examples</span><span class="qna-mesh-item-tag muted">Branching</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a></div></div><div class="qna-mesh-block"><p class="qna-mesh-label">Up next</p><div class="qna-mesh-list"><a href="/codefly/learn/git/qna/how-to-use-git-log-for-debugging" class="qna-mesh-item neighbor"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="green-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Use Git Log for Debugging: Simple Guide</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="green-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-use-git-log-with-file-filter" class="qna-mesh-item neighbor"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="green-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Use git log with File Filter for Specific File History</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="green-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-fix-accidentally-committed-file" class="qna-mesh-item neighbor"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="green-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Fix an Accidentally Committed File in Git</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="green-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-fix-authentication-failed-git" class="qna-mesh-item neighbor"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="green-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Fix Authentication Failed Error in Git</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="green-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a></div></div><div class="qna-mesh-block same-topic-block"><p class="qna-mesh-label">More in <strong>GitHub Specific</strong></p><div class="qna-mesh-list"><a href="/codefly/learn/git/qna/how-to-create-issue-on-github" class="qna-mesh-item same-topic"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="purple-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Create an Issue on GitHub: Step-by-Step Guide</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="purple-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-create-pull-request-in-git" class="qna-mesh-item same-topic"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="purple-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Create a Pull Request in Git: Step-by-Step Guide</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="purple-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-create-repository-on-github" class="qna-mesh-item same-topic"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="purple-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Create a Repository on GitHub: Step-by-Step Guide</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="purple-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a><a href="/codefly/learn/git/qna/how-to-protect-branch-on-github" class="qna-mesh-item same-topic"><span class="qna-mesh-item-icon"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="purple-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><span class="qna-mesh-item-title">How to Protect a Branch on GitHub: Step-by-Step Guide</span><span class="qna-mesh-item-arrow"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="purple-icon-color" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></span></a></div></div></div></article></div></div></div></main></div></div> <script src="/_next/static/chunks/webpack-fd24bd8e19d2841a.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/b133bdac07c7940e.css\",\"style\"]\n2:HL[\"/_next/static/css/caf3ca742c7945f9.css\",\"style\"]\n3:HL[\"/_next/static/css/837a603cb1a59856.css\",\"style\"]\n4:HL[\"/_next/static/css/74cd1891d522f88c.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"5:I[95751,[],\"\"]\n8:I[39275,[],\"\"]\nc:I[61343,[],\"\"]\nd:I[84080,[\"8726\",\"static/chunks/8726-583188341cbc1496.js\",\"3185\",\"static/chunks/app/layout-7a1373330f6a4c98.js\"],\"\"]\ne:I[88726,[\"8726\",\"static/chunks/8726-583188341cbc1496.js\",\"3185\",\"static/chunks/app/layout-7a1373330f6a4c98.js\"],\"Toaster\"]\nf:I[20154,[\"8422\",\"static/chunks/66ec4792-a0fc378024be0c7b.js\",\"6648\",\"static/chunks/6648-fff0cf0e0a1f8d25.js\",\"9160\",\"static/chunks/app/not-found-c4181ddc3e64e5f3.js\"],\"default\"]\n10:I[70548,[\"8726\",\"static/chunks/8726-583188341cbc1496.js\",\"3185\",\"static/chunks/app/layout-7a1373330f6a4c98.js\"],\"default\"]\n12:I[76130,[],\"\"]\n9:[\"lang\",\"en\",\"d\"]\na:[\"subject\",\"git\",\"d\"]\nb:[\"slug\",\"how-to-use-github-cli\",\"d\"]\n13:[]\n"])</script><script>self.__next_f.push([1,"0:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b133bdac07c7940e.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"buildId\":\"hN8t5By7h5nzsrdSose07\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/en/codefly/learn/git/qna/how-to-use-github-cli\",\"initialTree\":[\"\",{\"children\":[[\"lang\",\"en\",\"d\"],{\"children\":[\"codefly\",{\"children\":[\"learn\",{\"children\":[[\"subject\",\"git\",\"d\"],{\"children\":[\"qna\",{\"children\":[[\"slug\",\"how-to-use-github-cli\",\"d\"],{\"children\":[\"__PAGE__\",{}]}]}]}]}]}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[[\"lang\",\"en\",\"d\"],{\"children\":[\"codefly\",{\"children\":[\"learn\",{\"children\":[[\"subject\",\"git\",\"d\"],{\"children\":[\"qna\",{\"children\":[[\"slug\",\"how-to-use-github-cli\",\"d\"],{\"children\":[\"__PAGE__\",{},[[\"$L6\",\"$L7\"],null],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$a\",\"children\",\"qna\",\"children\",\"$b\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lc\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/caf3ca742c7945f9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/837a603cb1a59856.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/74cd1891d522f88c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$a\",\"children\",\"qna\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lc\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$a\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lc\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\",\"learn\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lc\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\",\"codefly\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lc\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$9\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lc\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#5f56fe\"}],[\"$\",\"meta\",null,{\"name\":\"msapplication-TileColor\",\"content\":\"#5f56fe\"}],[\"$\",\"$Ld\",null,{\"src\":\"https://www.googletagmanager.com/gtag/js?id=G-N2NY2DMMDW\",\"strategy\":\"afterInteractive\"}],[\"$\",\"$Ld\",null,{\"id\":\"google-analytics\",\"strategy\":\"afterInteractive\",\"children\":\"\\n window.dataLayer = window.dataLayer || [];\\n function gtag(){dataLayer.push(arguments);}\\n gtag('js', new Date());\\n gtag('config', 'G-N2NY2DMMDW', {\\n page_path: window.location.pathname,\\n });\\n \"}],[\"$\",\"script\",null,{\"async\":true,\"src\":\"https://www.googletagmanager.com/gtag/js?id=AW-17928224938\"}],[\"$\",\"$Ld\",null,{\"children\":\"\\n window.dataLayer = window.dataLayer || [];\\n function gtag() {\\n dataLayer.push(arguments);\\n }\\n gtag('js', new Date());\\n gtag('config', 'AW-17928224938');\\n \"}],[\"$\",\"script\",null,{\"data-grow-initializer\":\"\",\"suppressHydrationWarning\":true,\"dangerouslySetInnerHTML\":{\"__html\":\"!(function(){window.growMe||((window.growMe=function(e){window.growMe._.push(e);}),(window.growMe._=[]));var e=document.createElement(\\\"script\\\");(e.type=\\\"text/javascript\\\"),(e.src=\\\"https://faves.grow.me/main.js\\\"),(e.defer=!0),e.setAttribute(\\\"data-grow-faves-site-id\\\",\\\"U2l0ZTo0MGIxZDBlZC0wNzdlLTQ0NjgtOThmOC1kNDYyZGMwM2IwMWY=\\\");var t=document.getElementsByTagName(\\\"script\\\")[0];t.parentNode.insertBefore(e,t);})();\"}}],[\"$\",\"$Ld\",null,{\"src\":\"//scripts.scriptwrapper.com/tags/40b1d0ed-077e-4468-98f8-d462dc03b01f.js\",\"strategy\":\"afterInteractive\",\"data-noptimize\":\"1\",\"data-cfasync\":\"false\"}],[\"$\",\"script\",null,{\"type\":\"application/ld+json\",\"suppressHydrationWarning\":true,\"dangerouslySetInnerHTML\":{\"__html\":\"{\\\"@context\\\":\\\"https://schema.org\\\",\\\"@type\\\":\\\"WebApplication\\\",\\\"name\\\":\\\"Leyaa.ai\\\",\\\"description\\\":\\\"Leyaa.ai builds learning intelligence that understands how you learn - guiding what to study, how to practice, and when to move forward.\\\",\\\"url\\\":\\\"https://leyaa.ai\\\",\\\"applicationCategory\\\":\\\"EducationalApplication\\\",\\\"operatingSystem\\\":\\\"Web\\\",\\\"offers\\\":{\\\"@type\\\":\\\"Offer\\\",\\\"price\\\":\\\"0\\\",\\\"priceCurrency\\\":\\\"USD\\\"},\\\"creator\\\":{\\\"@type\\\":\\\"Organization\\\",\\\"name\\\":\\\"Leyaa.ai\\\"}}\"}}],[\"$\",\"link\",null,{\"href\":\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css\",\"rel\":\"stylesheet\",\"integrity\":\"sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB\",\"crossOrigin\":\"anonymous\"}],[\"$\",\"$Ld\",null,{\"id\":\"clarity-script\",\"strategy\":\"afterInteractive\",\"dangerouslySetInnerHTML\":{\"__html\":\"\\n (function(c,l,a,r,i,t,y){\\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\\n t=l.createElement(r);t.async=1;t.src=\\\"https://www.clarity.ms/tag/\\\"+i;\\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\\n })(window, document, \\\"clarity\\\", \\\"script\\\", \\\"w4gxh6rdmh\\\");\\n \"}}]]}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$Le\",null,{\"containerStyle\":{\"top\":70}}],[\"$\",\"div\",null,{\"className\":\"bg-grid\"}],[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lc\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[\"$\",\"$Lf\",null,{}],\"notFoundStyles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/250d3fff07338fa3.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],\"styles\":null}],[\"$\",\"$L10\",null,{}],\" \"]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$L11\"],\"globalErrorComponent\":\"$12\",\"missingSlots\":\"$W13\"}]]\n"])</script><script>self.__next_f.push([1,"14:I[56620,[\"8422\",\"static/chunks/66ec4792-a0fc378024be0c7b.js\",\"6051\",\"static/chunks/795d4814-e558be540b48def1.js\",\"522\",\"static/chunks/94730671-fd9628eddbd5107b.js\",\"7240\",\"static/chunks/53c13509-506edbde2b5b3f55.js\",\"7699\",\"static/chunks/8e1d74a4-a085c2fbc868135a.js\",\"5706\",\"static/chunks/9c4e2130-11ecd4bfc78e4568.js\",\"9212\",\"static/chunks/59650de3-e90957e3c8f68e80.js\",\"9956\",\"static/chunks/ee560e2c-91d263129af6c0b1.js\",\"7627\",\"static/chunks/7627-224bb765a4decf1d.js\",\"7652\",\"static/chunks/7652-412e201fe52797ee.js\",\"8555\",\"static/chunks/8555-cc138b2fb472bbce.js\",\"6013\",\"static/chunks/app/%5Blang%5D/codefly/learn/%5Bsubject%5D/qna/%5Bslug%5D/page-16afe37dc81236b8.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"7:[[[\"$\",\"script\",\"0\",{\"type\":\"application/ld+json\",\"dangerouslySetInnerHTML\":{\"__html\":\"{\\\"@context\\\":\\\"https://schema.org\\\",\\\"@type\\\":\\\"BreadcrumbList\\\",\\\"itemListElement\\\":[{\\\"@type\\\":\\\"ListItem\\\",\\\"position\\\":1,\\\"name\\\":\\\"Home\\\",\\\"item\\\":\\\"https://leyaa.ai/\\\"},{\\\"@type\\\":\\\"ListItem\\\",\\\"position\\\":2,\\\"name\\\":\\\"How to Use GitHub CLI: Basic Commands and Examples\\\"}]}\"}}],[\"$\",\"script\",\"1\",{\"type\":\"application/ld+json\",\"dangerouslySetInnerHTML\":{\"__html\":\"{\\\"@context\\\":\\\"https://schema.org\\\",\\\"@type\\\":\\\"TechArticle\\\",\\\"headline\\\":\\\"How to Use GitHub CLI: Basic Commands and Examples\\\",\\\"description\\\":\\\"Learn how to use GitHub CLI to manage repositories, issues, and pull requests from your terminal with simple commands.\\\",\\\"author\\\":{\\\"@type\\\":\\\"Organization\\\",\\\"name\\\":\\\"Leyaa.ai\\\",\\\"url\\\":\\\"https://leyaa.ai\\\"},\\\"publisher\\\":{\\\"@type\\\":\\\"Organization\\\",\\\"name\\\":\\\"Leyaa.ai\\\",\\\"url\\\":\\\"https://leyaa.ai\\\"},\\\"url\\\":\\\"https://leyaa.ai/codefly/learn/git/qna/how-to-use-github-cli\\\",\\\"inLanguage\\\":\\\"en\\\",\\\"proficiencyLevel\\\":\\\"beginner\\\",\\\"about\\\":{\\\"@type\\\":\\\"ComputerLanguage\\\",\\\"name\\\":\\\"Git\\\"},\\\"datePublished\\\":\\\"2026-03-09\\\",\\\"timeRequired\\\":\\\"PT4M\\\"}\"}}],[\"$\",\"script\",\"2\",{\"type\":\"application/ld+json\",\"dangerouslySetInnerHTML\":{\"__html\":\"{\\\"@context\\\":\\\"https://schema.org\\\",\\\"@type\\\":\\\"FAQPage\\\",\\\"mainEntity\\\":[{\\\"@type\\\":\\\"Question\\\",\\\"name\\\":\\\"How to use github cli\\\",\\\"acceptedAnswer\\\":{\\\"@type\\\":\\\"Answer\\\",\\\"text\\\":\\\"Use the gh command followed by an action like repo, issue, or pr to interact with GitHub from your terminal. For example, gh repo clone owner/repo clones a repository, and gh pr create starts a pull request.\\\"}}]}\"}}]],[\"$\",\"$L14\",null,{\"data\":{\"subject\":\"git\",\"query_slug\":\"how-to-use-github-cli\",\"content_type\":\"DevOps \u0026 Tools\",\"key_takeaways\":[\"Always authenticate first using \u003ccode\u003egh auth login\u003c/code\u003e to access private repositories and actions.\",\"Use \u003ccode\u003egh repo clone owner/repo\u003c/code\u003e to quickly clone repositories from the terminal.\",\"Create issues and pull requests directly with \u003ccode\u003egh issue create\u003c/code\u003e and \u003ccode\u003egh pr create\u003c/code\u003e commands.\",\"Check your authentication status anytime with \u003ccode\u003egh auth status\u003c/code\u003e to avoid permission errors.\",\"Specify base and head branches clearly when creating pull requests to avoid mistakes.\"],\"metadata\":{\"version\":\"1.0\",\"mode\":\"QNAS\",\"estimated_read_time\":4,\"difficulty\":\"beginner\",\"section_count\":4},\"pattern_slug\":\"how-to-use-github-cli\",\"query\":\"How to use github cli\",\"query_type\":\"how_to\",\"related_queries\":[\"git-commands-cheat-sheet\",\"how-to-create-pull-request\",\"how-to-authenticate-github-cli\"],\"sections\":[{\"heading\":\"Syntax\",\"content\":\"\u003cp\u003eThe basic syntax of GitHub CLI commands is \u003ccode\u003egh [command] [subcommand] [flags]\u003c/code\u003e. Here:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cstrong\u003egh\u003c/strong\u003e: The GitHub CLI tool.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003ecommand\u003c/strong\u003e: The main action like \u003ccode\u003erepo\u003c/code\u003e, \u003ccode\u003eissue\u003c/code\u003e, or \u003ccode\u003epr\u003c/code\u003e.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003esubcommand\u003c/strong\u003e: Specific operation under the command, such as \u003ccode\u003eclone\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, or \u003ccode\u003ecreate\u003c/code\u003e.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eflags\u003c/strong\u003e: Optional settings to customize the command behavior.\u003c/li\u003e\u003c/ul\u003e\",\"code\":\"gh [command] [subcommand] [flags]\",\"code_language\":\"bash\",\"code_output\":null,\"table\":null},{\"heading\":\"Example\",\"content\":\"\u003cp\u003eThis example shows how to clone a repository, create a new issue, and open a pull request using GitHub CLI.\u003c/p\u003e\",\"code\":\"gh repo clone cli/cli\\ncd cli\\n# Create a new issue\\ngh issue create --title \\\"Bug found\\\" --body \\\"There is a bug in the CLI tool.\\\"\\n# Create a pull request\\ngh pr create --title \\\"Fix bug\\\" --body \\\"This PR fixes the bug.\\\" --base main --head fix-branch\",\"code_language\":\"bash\",\"code_output\":\"Cloning into 'cli'...\\nremote: Enumerating objects: 1000, done.\\nremote: Counting objects: 100% (1000/1000), done.\\nremote: Compressing objects: 100% (800/800), done.\\nremote: Total 1000 (delta 200), reused 900 (delta 150), pack-reused 0\\nReceiving objects: 100% (1000/1000), 2.5 MiB | 1.2 MiB/s, done.\\nCreating issue in cli/cli\\nIssue created: https://github.com/cli/cli/issues/1234\\nCreating pull request\\nPull request created: https://github.com/cli/cli/pull/5678\",\"table\":null},{\"heading\":\"Common Pitfalls\",\"content\":\"\u003cp\u003eCommon mistakes when using GitHub CLI include:\u003c/p\u003e\u003cul\u003e\u003cli\u003eNot authenticating with \u003ccode\u003egh auth login\u003c/code\u003e before running commands that require permissions.\u003c/li\u003e\u003cli\u003eUsing incorrect repository names or missing owner names in commands.\u003c/li\u003e\u003cli\u003eForgetting to specify the base and head branches when creating pull requests.\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAlways check your current authentication status with \u003ccode\u003egh auth status\u003c/code\u003e.\u003c/p\u003e\",\"code\":\"gh pr create --title \\\"Fix bug\\\"\\n# Error: authentication required\\n\\n# Correct way:\\ngh auth login\\ngh pr create --title \\\"Fix bug\\\" --base main --head fix-branch\",\"code_language\":\"bash\",\"code_output\":\"Error: authentication required\\n\\n# After login\\nCreating pull request\\nPull request created: https://github.com/owner/repo/pull/1\",\"table\":null},{\"heading\":\"Quick Reference\",\"content\":null,\"code\":null,\"code_language\":null,\"code_output\":null,\"table\":{\"headers\":[\"Command\",\"Description\"],\"rows\":[[\"gh auth login\",\"Authenticate your GitHub account\"],[\"gh repo clone owner/repo\",\"Clone a GitHub repository\"],[\"gh issue create --title \u003ctitle\u003e --body \u003cbody\u003e\",\"Create a new issue\"],[\"gh pr create --title \u003ctitle\u003e --body \u003cbody\u003e --base \u003cbranch\u003e --head \u003cbranch\u003e\",\"Create a pull request\"],[\"gh pr list\",\"List open pull requests\"],[\"gh issue list\",\"List open issues\"]]}}],\"seo_description\":\"Learn how to use GitHub CLI to manage repositories, issues, and pull requests from your terminal with simple commands.\",\"seo_title\":\"How to Use GitHub CLI: Basic Commands and Examples\",\"short_answer\":\"Use the \u003ccode\u003egh\u003c/code\u003e command followed by an action like \u003ccode\u003erepo\u003c/code\u003e, \u003ccode\u003eissue\u003c/code\u003e, or \u003ccode\u003epr\u003c/code\u003e to interact with GitHub from your terminal. For example, \u003ccode\u003egh repo clone owner/repo\u003c/code\u003e clones a repository, and \u003ccode\u003egh pr create\u003c/code\u003e starts a pull request.\",\"topic_group\":\"GitHub Specific\",\"topic_order\":17,\"publishedAt\":\"2026-03-09\"},\"subject\":\"git\",\"dbSubject\":\"git\",\"product\":\"codefly\",\"baseUrl\":\"/codefly/learn\",\"queryList\":[{\"topic\":\"General\",\"order\":0,\"count\":1,\"queries\":[{\"slug\":\"how-to-create-bare-repository-in-git\",\"title\":\"How to Create a Bare Repository in Git: Simple Steps\",\"type\":\"how_to\"}]},{\"topic\":\"Getting Started\",\"order\":1,\"count\":13,\"queries\":[{\"slug\":\"centralized-vs-distributed-version-control-in-git\",\"title\":\"Centralized vs Distributed Version Control in Git: Key Differences\",\"type\":\"comparison\"},{\"slug\":\"git-vs-github-difference\",\"title\":\"Git vs GitHub: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-vs-svn-difference\",\"title\":\"Git vs SVN: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"how-to-check-git-version\",\"title\":\"How to Check Git Version Quickly and Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-configure-git-username-and-email\",\"title\":\"How to Configure Git Username and Email for Commits\",\"type\":\"how_to\"},{\"slug\":\"how-to-install-git-on-linux\",\"title\":\"How to Install Git on Linux: Simple Steps for Beginners\",\"type\":\"how_to\"},{\"slug\":\"how-to-install-git-on-mac\",\"title\":\"How to Install Git on Mac: Simple Steps for Beginners\",\"type\":\"how_to\"},{\"slug\":\"how-to-install-git-on-windows\",\"title\":\"How to Install Git on Windows: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-config\",\"title\":\"How to Use git config: Syntax, Examples, and Tips\",\"type\":\"how_to\"},{\"slug\":\"what-is-distributed-version-control-in-git\",\"title\":\"What is Distributed Version Control in Git: Simple Explanation\",\"type\":\"what_is\"},{\"slug\":\"what-is-git\",\"title\":\"What is Git: Simple Explanation and Usage Guide\",\"type\":\"what_is\"},{\"slug\":\"what-is-git-used-for\",\"title\":\"What Is Git Used For: Version Control Explained\",\"type\":\"what_is\"},{\"slug\":\"what-is-version-control-system-in-git\",\"title\":\"What is Version Control System in Git: Simple Explanation\",\"type\":\"what_is\"}]},{\"topic\":\"Repository\",\"order\":2,\"count\":14,\"queries\":[{\"slug\":\"how-to-clone-git-repository\",\"title\":\"How to Clone a Git Repository: Simple Git Clone Command Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-clone-specific-branch\",\"title\":\"How to Clone a Specific Branch in Git Quickly\",\"type\":\"how_to\"},{\"slug\":\"how-to-clone-with-depth-in-git\",\"title\":\"How to Clone with Depth in Git: Shallow Clone Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-git-repository\",\"title\":\"How to Create a Git Repository: Simple Steps for Beginners\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-gitignore-file\",\"title\":\"How to Create a .gitignore File in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-ignore-file-in-git\",\"title\":\"How to Ignore Files in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-ignore-folder-in-git\",\"title\":\"How to Ignore a Folder in Git: Simple .gitignore Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-remove-file-from-git-but-keep-locally\",\"title\":\"How to Remove a File from Git but Keep It Locally\",\"type\":\"how_to\"},{\"slug\":\"how-to-stop-tracking-file-in-git\",\"title\":\"How to Stop Tracking a File in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-clone\",\"title\":\"How to Use git clone: Simple Guide with Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-init\",\"title\":\"How to Use git init: Initialize a Git Repository Easily\",\"type\":\"how_to\"},{\"slug\":\"what-is-bare-repository-in-git\",\"title\":\"What Is Bare Repository in Git: Explanation and Usage\",\"type\":\"what_is\"},{\"slug\":\"what-is-git-folder\",\"title\":\".git Folder Explained: What It Is and How It Works\",\"type\":\"what_is\"},{\"slug\":\"what-is-gitignore-file\",\"title\":\".gitignore File: What It Is and How It Works in Git\",\"type\":\"what_is\"}]},{\"topic\":\"Basic Commands\",\"order\":3,\"count\":24,\"queries\":[{\"slug\":\"how-to-add-all-files-in-git\",\"title\":\"How to Add All Files in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-add-file-to-staging-in-git\",\"title\":\"How to Add a File to Staging in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-add-specific-file-in-git\",\"title\":\"How to Add a Specific File in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-check-git-status\",\"title\":\"How to Check Git Status: Simple Guide to git status Command\",\"type\":\"how_to\"},{\"slug\":\"how-to-commit-in-git\",\"title\":\"How to Commit in Git: Simple Steps to Save Your Changes\",\"type\":\"how_to\"},{\"slug\":\"how-to-commit-with-message-in-git\",\"title\":\"How to Commit with Message in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-changes-in-git\",\"title\":\"How to See Changes in Git: Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-commit-history-in-git\",\"title\":\"How to See Commit History in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-file-changes-before-commit\",\"title\":\"How to See File Changes Before Commit in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-who-changed-file-in-git\",\"title\":\"How to See Who Changed a File in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-add\",\"title\":\"How to Use git add: Basic Syntax and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-blame\",\"title\":\"How to Use git blame: Syntax, Example, and Tips\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-commit\",\"title\":\"How to Use git commit: Basic Syntax and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-commit-am\",\"title\":\"How to Use git commit -am: Quick Guide and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-commit-m\",\"title\":\"How to Use git commit -m: Simple Guide with Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-diff\",\"title\":\"How to Use Git Diff: Compare Changes Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-diff-staged\",\"title\":\"How to Use git diff staged to See Changes Ready to Commit\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-log\",\"title\":\"How to Use git log: View Commit History Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-log-graph\",\"title\":\"How to Use git log --graph to Visualize Commit History\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-log-oneline\",\"title\":\"How to Use git log --oneline for Simple Commit History\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-shortlog\",\"title\":\"How to Use git shortlog: Syntax, Examples, and Tips\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-show\",\"title\":\"How to Use git show: View Commit Details Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-status\",\"title\":\"How to Use git status: Check Your Git Repository State\",\"type\":\"how_to\"},{\"slug\":\"how-to-write-good-commit-message\",\"title\":\"How to Write Good Commit Messages in Git: Best Practices\",\"type\":\"how_to\"}]},{\"topic\":\"Undo Changes\",\"order\":4,\"count\":27,\"queries\":[{\"slug\":\"git-reset-soft-vs-mixed-vs-hard\",\"title\":\"Git Reset Soft vs Mixed vs Hard: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"how-to-amend-last-commit-in-git\",\"title\":\"How to Amend Last Commit in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-change-last-commit-message\",\"title\":\"How to Change Last Commit Message in Git Quickly\",\"type\":\"how_to\"},{\"slug\":\"how-to-discard-all-changes-in-git\",\"title\":\"How to Discard All Changes in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-discard-changes-in-file-git\",\"title\":\"How to Discard Changes in a File with Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-recover-deleted-commit-in-git\",\"title\":\"How to Recover Deleted Commit in Git Quickly and Safely\",\"type\":\"how_to\"},{\"slug\":\"how-to-reset-to-specific-commit-in-git\",\"title\":\"How to Reset to a Specific Commit in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-revert-commit-in-git\",\"title\":\"How to Revert Commit in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-undo-commit-and-discard-changes\",\"title\":\"How to Undo Commit and Discard Changes in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-undo-commit-but-keep-changes\",\"title\":\"How to Undo a Git Commit but Keep Your Changes\",\"type\":\"how_to\"},{\"slug\":\"how-to-undo-git-add\",\"title\":\"How to Undo git add: Simple Commands to Unstage Files\",\"type\":\"how_to\"},{\"slug\":\"how-to-undo-git-push\",\"title\":\"How to Undo Git Push: Simple Commands to Fix Mistakes\",\"type\":\"how_to\"},{\"slug\":\"how-to-undo-last-commit-in-git\",\"title\":\"How to Undo Last Commit in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-undo-last-push-in-git\",\"title\":\"How to Undo Last Push in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-undo-merge-in-git\",\"title\":\"How to Undo Merge in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-unstage-file-in-git\",\"title\":\"How to Unstage a File in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-checkout-to-undo\",\"title\":\"How to Use git checkout to Undo Changes Quickly\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-commit-amend\",\"title\":\"How to Use Git Commit Amend to Modify Last Commit\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-reflog\",\"title\":\"How to Use Git Reflog: Recover and Track Changes Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-reset\",\"title\":\"How to Use Git Reset: Syntax, Examples, and Tips\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-reset-hard\",\"title\":\"How to Use git reset --hard: Syntax, Example, and Tips\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-reset-mixed\",\"title\":\"How to Use Git Reset Mixed: Syntax and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-reset-soft\",\"title\":\"How to Use git reset --soft: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-restore\",\"title\":\"How to Use git restore: Syntax, Examples, and Tips\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-restore-staged\",\"title\":\"How to Use git restore staged to Unstage Files\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-revert\",\"title\":\"How to Use git revert: Undo Commits Safely\",\"type\":\"how_to\"},{\"slug\":\"what-is-git-reflog\",\"title\":\"What is git reflog: Understanding Git Reference Logs\",\"type\":\"what_is\"}]},{\"topic\":\"Branching\",\"order\":5,\"count\":22,\"queries\":[{\"slug\":\"git-switch-vs-git-checkout\",\"title\":\"Git switch vs git checkout: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"how-to-create-and-switch-branch-in-git\",\"title\":\"How to Create and Switch Branch in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-branch-from-another-branch\",\"title\":\"How to Create a Git Branch from Another Branch Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-branch-from-specific-commit\",\"title\":\"How to Create a Git Branch from a Specific Commit\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-branch-in-git\",\"title\":\"How to Create a Branch in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-delete-branch-in-git\",\"title\":\"How to Delete a Branch in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-delete-remote-branch-in-git\",\"title\":\"How to Delete a Remote Branch in Git Quickly and Safely\",\"type\":\"how_to\"},{\"slug\":\"how-to-list-all-branches-in-git\",\"title\":\"How to List All Branches in Git: Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-list-remote-branches-in-git\",\"title\":\"How to List Remote Branches in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-push-branch-to-remote-in-git\",\"title\":\"How to Push a Branch to Remote in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-rename-branch-in-git\",\"title\":\"How to Rename Branch in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-rename-local-branch-in-git\",\"title\":\"How to Rename a Local Branch in Git Quickly and Safely\",\"type\":\"how_to\"},{\"slug\":\"how-to-rename-remote-branch-in-git\",\"title\":\"How to Rename Remote Branch in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-current-branch-in-git\",\"title\":\"How to See Current Branch in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-default-branch-in-git\",\"title\":\"How to Set Default Branch in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-switch-branch-in-git\",\"title\":\"How to Switch Branch in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-branch\",\"title\":\"How to Use Git Branch: Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-checkout\",\"title\":\"How to Use git checkout: Syntax, Examples, and Tips\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-switch\",\"title\":\"How to Use git switch: Simple Guide to Change Branches\",\"type\":\"how_to\"},{\"slug\":\"main-vs-master-branch-in-git\",\"title\":\"Main vs Master Branch in Git: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"what-is-branch-in-git\",\"title\":\"What is Branch in Git: Simple Explanation and Usage\",\"type\":\"what_is\"},{\"slug\":\"what-is-main-branch-in-git\",\"title\":\"What is Main Branch in Git: Definition and Usage\",\"type\":\"what_is\"}]},{\"topic\":\"Merging\",\"order\":6,\"count\":16,\"queries\":[{\"slug\":\"fast-forward-vs-three-way-merge\",\"title\":\"Fast Forward vs Three Way Merge: Key Differences in Git\",\"type\":\"comparison\"},{\"slug\":\"how-to-abort-merge-in-git\",\"title\":\"How to Abort a Merge in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-merge-branch-in-git\",\"title\":\"How to Merge Branch in Git: Simple Guide with Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-merge-branch-into-main\",\"title\":\"How to Merge a Branch into Main in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-merge-main-into-feature-branch\",\"title\":\"How to Merge Main into Feature Branch in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-resolve-merge-conflict-in-git\",\"title\":\"How to Resolve Merge Conflict in Git Quickly and Easily\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-see-merge-history-in-git\",\"title\":\"How to See Merge History in Git: Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-squash-merge-in-git\",\"title\":\"How to Squash Merge in Git: Simple Steps and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-merge\",\"title\":\"How to Use Git Merge: Simple Guide to Combine Branches\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-merge-tool-in-git\",\"title\":\"How to Use Merge Tool in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-no-ff-merge-in-git\",\"title\":\"How to Use No-FF Merge in Git: Syntax and Example\",\"type\":\"how_to\"},{\"slug\":\"merge-vs-squash-merge-in-git\",\"title\":\"Merge vs Squash Merge in Git: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"what-is-fast-forward-merge-in-git\",\"title\":\"Fast Forward Merge in Git: What It Is and How It Works\",\"type\":\"what_is\"},{\"slug\":\"what-is-merge-conflict-in-git\",\"title\":\"What Is Merge Conflict in Git: Simple Explanation and Example\",\"type\":\"what_is\"},{\"slug\":\"what-is-squash-merge-in-git\",\"title\":\"What is Squash Merge in Git: Explanation and Example\",\"type\":\"what_is\"},{\"slug\":\"what-is-three-way-merge-in-git\",\"title\":\"What is Three Way Merge in Git: Simple Explanation and Example\",\"type\":\"what_is\"}]},{\"topic\":\"Rebasing\",\"order\":7,\"count\":15,\"queries\":[{\"slug\":\"how-to-abort-rebase-in-git\",\"title\":\"How to Abort a Git Rebase: Simple Steps to Cancel Rebase\",\"type\":\"how_to\"},{\"slug\":\"how-to-continue-rebase-after-conflict\",\"title\":\"How to Continue Git Rebase After Conflict\",\"type\":\"how_to\"},{\"slug\":\"how-to-drop-commit-using-rebase\",\"title\":\"How to Drop a Commit Using Git Rebase\",\"type\":\"how_to\"},{\"slug\":\"how-to-edit-commit-using-rebase\",\"title\":\"How to Edit a Commit Using Git Rebase - Step by Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-fix-commit-message-using-rebase\",\"title\":\"How to Fix Commit Message Using Git Rebase\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-rebase-branch-in-git\",\"title\":\"How to Rebase Branch in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-rebase-onto-main-in-git\",\"title\":\"How to Rebase Onto Main in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-reorder-commits-using-rebase\",\"title\":\"How to Reorder Commits Using Git Rebase Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-resolve-rebase-conflict\",\"title\":\"How to Resolve Rebase Conflict in Git Quickly\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-squash-commits-using-rebase\",\"title\":\"How to Squash Commits Using Git Rebase: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-rebase\",\"title\":\"How to Use Git Rebase: Simple Guide and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-rebase-interactive\",\"title\":\"How to Use Git Rebase Interactive: Syntax and Examples\",\"type\":\"how_to\"},{\"slug\":\"what-is-interactive-rebase-in-git\",\"title\":\"What is Interactive Rebase in Git: Explained Simply\",\"type\":\"what_is\"},{\"slug\":\"what-is-rebase-in-git\",\"title\":\"What is Rebase in Git: Explanation and Usage\",\"type\":\"what_is\"},{\"slug\":\"when-to-use-rebase-vs-merge\",\"title\":\"Rebase vs Merge in Git: Key Differences and When to Use Each\",\"type\":\"comparison\"}]},{\"topic\":\"Remote\",\"order\":8,\"count\":24,\"queries\":[{\"slug\":\"git-push-force-vs-force-with-lease\",\"title\":\"Git Push Force vs Force-With-Lease: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"how-to-add-remote-in-git\",\"title\":\"How to Add Remote in Git: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-change-remote-url-in-git\",\"title\":\"How to Change Remote URL in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-fetch-all-branches-in-git\",\"title\":\"How to Fetch All Branches in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-fetch-specific-branch-in-git\",\"title\":\"How to Fetch a Specific Branch in Git Quickly\",\"type\":\"how_to\"},{\"slug\":\"how-to-force-push-in-git\",\"title\":\"How to Force Push in Git: Syntax, Example, and Tips\",\"type\":\"how_to\"},{\"slug\":\"how-to-pull-from-remote-in-git\",\"title\":\"How to Pull from Remote in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-push-new-branch-to-remote\",\"title\":\"How to Push a New Branch to Remote in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-push-to-remote-in-git\",\"title\":\"How to Push to Remote in Git: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-push-to-specific-branch\",\"title\":\"How to Push to a Specific Branch in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-remove-remote-in-git\",\"title\":\"How to Remove Remote in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-remote-in-git\",\"title\":\"How to See Remote in Git: Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-upstream-branch-in-git\",\"title\":\"How to Set Upstream Branch in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-track-remote-branch-in-git\",\"title\":\"How to Track Remote Branch in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-fetch\",\"title\":\"How to Use Git Fetch: Basic Syntax and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-pull\",\"title\":\"How to Use git pull: Simple Guide to Update Your Repository\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-push\",\"title\":\"How to Use Git Push: Simple Guide for Beginners\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-push-u\",\"title\":\"How to Use git push -u: Simple Guide for Beginners\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-remote-add\",\"title\":\"How to Use git remote add: Add Remote Repositories Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-remote-v\",\"title\":\"How to Use git remote -v to View Remote Repositories\",\"type\":\"how_to\"},{\"slug\":\"origin-vs-upstream-in-git\",\"title\":\"Origin vs Upstream in Git: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"what-is-origin-in-git\",\"title\":\"What is origin in Git: Explanation and Usage\",\"type\":\"what_is\"},{\"slug\":\"what-is-upstream-in-git\",\"title\":\"What is Upstream in Git: Explanation and Usage\",\"type\":\"what_is\"},{\"slug\":\"when-to-use-git-push-force\",\"title\":\"When to Use git push force: Safe and Practical Guide\",\"type\":\"what_is\"}]},{\"topic\":\"Stashing\",\"order\":9,\"count\":16,\"queries\":[{\"slug\":\"git-stash-pop-vs-stash-apply\",\"title\":\"Git stash pop vs stash apply: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"how-to-apply-specific-stash-in-git\",\"title\":\"How to Apply a Specific Stash in Git Quickly\",\"type\":\"how_to\"},{\"slug\":\"how-to-apply-stash-in-git\",\"title\":\"How to Apply Stash in Git: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-clear-all-stashes-in-git\",\"title\":\"How to Clear All Stashes in Git Quickly and Safely\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-branch-from-stash\",\"title\":\"How to Create a Branch from a Git Stash Quickly\",\"type\":\"how_to\"},{\"slug\":\"how-to-drop-stash-in-git\",\"title\":\"How to Drop Stash in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-list-stashes-in-git\",\"title\":\"How to List Stashes in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-show-stash-contents-in-git\",\"title\":\"How to Show Stash Contents in Git: Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-stash-changes-in-git\",\"title\":\"How to Stash Changes in Git: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-stash-specific-file-in-git\",\"title\":\"How to Stash Specific File in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-stash-untracked-files-in-git\",\"title\":\"How to Stash Untracked Files in Git Quickly and Safely\",\"type\":\"how_to\"},{\"slug\":\"how-to-stash-with-message-in-git\",\"title\":\"How to Stash with Message in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-stash\",\"title\":\"How to Use Git Stash: Save and Restore Changes Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-stash-apply\",\"title\":\"How to Use git stash apply: Syntax and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-stash-pop\",\"title\":\"How to Use git stash pop: Restore Stashed Changes Easily\",\"type\":\"how_to\"},{\"slug\":\"what-is-stash-in-git\",\"title\":\"What is Git Stash: Save and Restore Changes Easily\",\"type\":\"what_is\"}]},{\"topic\":\"Cherry Pick\",\"order\":10,\"count\":9,\"queries\":[{\"slug\":\"cherry-pick-vs-merge-in-git\",\"title\":\"Cherry Pick vs Merge in Git: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"how-to-abort-cherry-pick-in-git\",\"title\":\"How to Abort Cherry Pick in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-cherry-pick-commit-in-git\",\"title\":\"How to Cherry Pick Commit in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-cherry-pick-multiple-commits\",\"title\":\"How to Cherry Pick Multiple Commits in Git Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-cherry-pick-range-of-commits\",\"title\":\"How to Cherry Pick Range of Commits in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-resolve-cherry-pick-conflict-in-git\",\"title\":\"How to Resolve Cherry Pick Conflict in Git Quickly\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-use-git-cherry-pick\",\"title\":\"How to Use Git Cherry-Pick: Simple Guide and Examples\",\"type\":\"how_to\"},{\"slug\":\"what-is-cherry-pick-in-git\",\"title\":\"Git Cherry Pick: What It Is and How to Use It\",\"type\":\"what_is\"},{\"slug\":\"when-to-use-cherry-pick-in-git\",\"title\":\"When to Use Git Cherry Pick: Practical Guide and Examples\",\"type\":\"what_is\"}]},{\"topic\":\"Tags\",\"order\":11,\"count\":13,\"queries\":[{\"slug\":\"annotated-vs-lightweight-tag-in-git\",\"title\":\"Annotated vs Lightweight Tag in Git: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"how-to-checkout-tag-in-git\",\"title\":\"How to Checkout a Tag in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-annotated-tag-in-git\",\"title\":\"How to Create Annotated Tag in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-lightweight-tag-in-git\",\"title\":\"How to Create Lightweight Tag in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-release-from-tag-in-git\",\"title\":\"How to Create a Release from a Tag in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-tag-in-git\",\"title\":\"How to Create Tag in Git: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-delete-remote-tag-in-git\",\"title\":\"How to Delete Remote Tag in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-delete-tag-in-git\",\"title\":\"How to Delete a Tag in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-list-tags-in-git\",\"title\":\"How to List Tags in Git: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-push-all-tags-in-git\",\"title\":\"How to Push All Tags in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-push-tag-to-remote-in-git\",\"title\":\"How to Push Tag to Remote in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-tag-specific-commit-in-git\",\"title\":\"How to Tag a Specific Commit in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"what-is-tag-in-git\",\"title\":\"What Is Tag in Git: Definition, Usage, and Examples\",\"type\":\"what_is\"}]},{\"topic\":\"Git Workflows\",\"order\":12,\"count\":18,\"queries\":[{\"slug\":\"gitflow-vs-github-flow-vs-trunk-based\",\"title\":\"Gitflow vs GitHub Flow vs Trunk Based: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"how-to-contribute-to-open-source-using-git\",\"title\":\"How to Contribute to Open Source Using Git: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-pull-request-in-github\",\"title\":\"How to Create a Pull Request in GitHub: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-fork-repository-in-github\",\"title\":\"How to Fork a Repository in GitHub: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-merge-pull-request\",\"title\":\"How to Merge Pull Request in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-rebase-and-merge-pull-request\",\"title\":\"How to Rebase and Merge Pull Request in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-review-pull-request-in-github\",\"title\":\"How to Review Pull Request in GitHub: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-squash-and-merge-pull-request\",\"title\":\"How to Squash and Merge Pull Request in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-sync-fork-with-upstream-in-git\",\"title\":\"How to Sync Fork with Upstream in Git: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-feature-branch-workflow\",\"title\":\"Feature Branch Workflow in Git: How to Use It Effectively\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-pull-request-workflow-in-git\",\"title\":\"How to Use Pull Request Workflow in Git: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"merge-vs-squash-vs-rebase-pull-request\",\"title\":\"Merge vs Squash vs Rebase Pull Request: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"what-is-fork-in-github\",\"title\":\"What is Fork in GitHub: Definition and Usage Explained\",\"type\":\"what_is\"},{\"slug\":\"what-is-gitflow-workflow\",\"title\":\"Gitflow Workflow: What It Is and How It Works\",\"type\":\"what_is\"},{\"slug\":\"what-is-github-flow\",\"title\":\"What is GitHub Flow: Simple Git Branching Workflow Explained\",\"type\":\"what_is\"},{\"slug\":\"what-is-hotfix-branch-in-gitflow\",\"title\":\"What is Hotfix Branch in Gitflow: Definition and Usage\",\"type\":\"what_is\"},{\"slug\":\"what-is-release-branch-in-gitflow\",\"title\":\"Release Branch in Gitflow: Definition and Usage\",\"type\":\"what_is\"},{\"slug\":\"what-is-trunk-based-development-in-git\",\"title\":\"Trunk Based Development in Git: What It Is and How It Works\",\"type\":\"what_is\"}]},{\"topic\":\"Advanced Commands\",\"order\":13,\"count\":23,\"queries\":[{\"slug\":\"how-to-add-submodule-in-git\",\"title\":\"How to Add Submodule in Git: Simple Steps and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-find-bug-using-git-bisect\",\"title\":\"How to Find Bugs Using Git Bisect: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-remove-file-from-git-history\",\"title\":\"How to Remove a File from Git History Quickly\",\"type\":\"how_to\"},{\"slug\":\"how-to-remove-sensitive-data-from-git\",\"title\":\"How to Remove Sensitive Data from Git Safely\",\"type\":\"how_to\"},{\"slug\":\"how-to-remove-submodule-in-git\",\"title\":\"How to Remove a Submodule in Git: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-remove-untracked-files-in-git\",\"title\":\"How to Remove Untracked Files in Git Quickly and Safely\",\"type\":\"how_to\"},{\"slug\":\"how-to-rewrite-git-history\",\"title\":\"How to Rewrite Git History: Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-search-in-git-history\",\"title\":\"How to Search in Git History: Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-update-submodule-in-git\",\"title\":\"How to Update Submodule in Git: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-bfg-repo-cleaner-in-git\",\"title\":\"How to Use BFG Repo Cleaner in Git for Fast History Cleanup\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-archive\",\"title\":\"How to Use git archive: Create Archives from Git Repositories\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-bisect\",\"title\":\"How to Use Git Bisect to Find Bugs Quickly\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-bundle\",\"title\":\"How to Use Git Bundle for Offline Repository Sharing\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-clean\",\"title\":\"How to Use git clean: Remove Untracked Files Safely\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-filter-branch\",\"title\":\"How to Use git filter-branch: Syntax, Example, and Tips\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-fsck\",\"title\":\"How to Use git fsck to Check Repository Integrity\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-gc\",\"title\":\"How to Use git gc: Clean and Optimize Your Git Repository\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-grep\",\"title\":\"How to Use git grep: Search Code in Git Repositories\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-submodule\",\"title\":\"How to Use Git Submodule: Add and Manage Submodules Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-worktree\",\"title\":\"How to Use Git Worktree: Manage Multiple Branches Easily\",\"type\":\"how_to\"},{\"slug\":\"what-is-git-bisect\",\"title\":\"What is Git Bisect: Find Bugs Efficiently with Git\",\"type\":\"what_is\"},{\"slug\":\"what-is-git-garbage-collection\",\"title\":\"What is Git Garbage Collection and How It Works\",\"type\":\"what_is\"},{\"slug\":\"what-is-git-worktree\",\"title\":\"Git Worktree: What It Is and How to Use It\",\"type\":\"what_is\"}]},{\"topic\":\"Git Hooks\",\"order\":14,\"count\":11,\"queries\":[{\"slug\":\"how-to-create-custom-git-hook\",\"title\":\"How to Create Custom Git Hook: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-share-git-hooks-with-team\",\"title\":\"How to Share Git Hooks with Your Team Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-skip-git-hook\",\"title\":\"How to Skip Git Hook: Simple Commands to Bypass Git Hooks\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-commit-msg-hook\",\"title\":\"How to Use Git commit-msg Hook for Commit Message Validation\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-husky-for-git-hooks\",\"title\":\"How to Use Husky for Git Hooks: Simple Setup and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-lint-staged-with-husky-in-git\",\"title\":\"How to Use lint-staged with Husky in Git for Pre-commit Checks\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-post-commit-hook\",\"title\":\"How to Use Git Post-Commit Hook: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-pre-commit-hook\",\"title\":\"How to Use Git Pre-commit Hook: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-pre-push-hook-in-git\",\"title\":\"How to Use Pre-Push Hook in Git: Setup and Examples\",\"type\":\"how_to\"},{\"slug\":\"what-are-git-hooks\",\"title\":\"What Are Git Hooks: Automate Git Actions Easily\",\"type\":\"what_is\"},{\"slug\":\"where-are-git-hooks-stored\",\"title\":\"Where Are Git Hooks Stored: Location and Usage Explained\",\"type\":\"how_to\"}]},{\"topic\":\"Configuration\",\"order\":15,\"count\":16,\"queries\":[{\"slug\":\"crlf-vs-lf-in-git\",\"title\":\"CRLF vs LF in Git: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"how-to-cache-git-credentials\",\"title\":\"How to Cache Git Credentials for Easy Authentication\",\"type\":\"how_to\"},{\"slug\":\"how-to-configure-git-globally\",\"title\":\"How to Configure Git Globally: Simple Steps\",\"type\":\"how_to\"},{\"slug\":\"how-to-configure-git-locally\",\"title\":\"How to Configure Git Locally: Simple Steps for Beginners\",\"type\":\"how_to\"},{\"slug\":\"how-to-configure-line-endings-git\",\"title\":\"How to Configure Line Endings in Git for Cross-Platform Consistency\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-git-alias\",\"title\":\"How to Create Git Alias: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-autocrlf-in-git\",\"title\":\"How to Set autocrlf in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-default-branch-name\",\"title\":\"How to Set Default Branch Name in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-diff-tool-in-git\",\"title\":\"How to Set Diff Tool in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-git-editor\",\"title\":\"How to Set Git Editor: Configure Your Preferred Text Editor for Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-merge-tool-in-git\",\"title\":\"How to Set Merge Tool in Git: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-up-ssh-key-for-github\",\"title\":\"How to Set Up SSH Key for GitHub: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-credential-helper-git\",\"title\":\"How to Use Git Credential Helper for Secure Authentication\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-aliases\",\"title\":\"How to Use Git Aliases for Faster Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-gpg-signing-for-commits\",\"title\":\"How to Use GPG Signing for Git Commits\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-ssh-with-git\",\"title\":\"How to Use SSH with Git: Simple Setup and Usage Guide\",\"type\":\"how_to\"}]},{\"topic\":\"Collaboration\",\"order\":16,\"count\":13,\"queries\":[{\"slug\":\"how-to-compare-branches-in-git\",\"title\":\"How to Compare Branches in Git: Simple Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-compare-commits-in-git\",\"title\":\"How to Compare Commits in Git: Simple Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-find-when-bug-was-introduced-in-git\",\"title\":\"How to Find When a Bug Was Introduced in Git Using Git Bisect\",\"type\":\"how_to\"},{\"slug\":\"how-to-handle-merge-conflict\",\"title\":\"How to Handle Merge Conflict in Git: Simple Steps\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-see-branch-differences\",\"title\":\"How to See Branch Differences in Git: Simple Commands\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-changes-in-specific-commit\",\"title\":\"How to See Changes in a Specific Git Commit\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-commit-history-for-file\",\"title\":\"How to See Commit History for a File in Git\",\"type\":\"how_to\"},{\"slug\":\"how-to-see-who-changed-line-in-git\",\"title\":\"How to See Who Changed a Line in Git Using git blame\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-code-review-in-git\",\"title\":\"How to Use Code Review in Git: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-annotate\",\"title\":\"How to Use Git Annotate to Track Line Changes\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-blame-for-debugging\",\"title\":\"How to Use Git Blame for Debugging: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-log-for-debugging\",\"title\":\"How to Use Git Log for Debugging: Simple Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-log-with-file-filter\",\"title\":\"How to Use git log with File Filter for Specific File History\",\"type\":\"how_to\"}]},{\"topic\":\"GitHub Specific\",\"order\":17,\"count\":14,\"queries\":[{\"slug\":\"how-to-create-issue-on-github\",\"title\":\"How to Create an Issue on GitHub: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-pull-request-in-git\",\"title\":\"How to Create a Pull Request in Git: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-create-repository-on-github\",\"title\":\"How to Create a Repository on GitHub: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-protect-branch-on-github\",\"title\":\"How to Protect a Branch on GitHub: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-push-to-github\",\"title\":\"How to Push to GitHub: Simple Git Commands Explained\",\"type\":\"how_to\"},{\"slug\":\"how-to-set-branch-protection-rules\",\"title\":\"How to Set Branch Protection Rules in Git Repositories\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-github-actions\",\"title\":\"How to Use GitHub Actions: Simple Guide for Automation\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-github-cli\",\"title\":\"How to Use GitHub CLI: Basic Commands and Examples\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-github-codespaces\",\"title\":\"How to Use GitHub Codespaces: Quick Start Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-github-gist\",\"title\":\"How to Use GitHub Gist: Create, Share, and Manage Code Snippets\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-github-pages\",\"title\":\"How to Use GitHub Pages: Step-by-Step Guide for Beginners\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-github-releases\",\"title\":\"How to Use GitHub Releases: Create and Manage Versions Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-github-secrets\",\"title\":\"How to Use GitHub Secrets for Secure Workflow Automation\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-github-templates\",\"title\":\"How to Use GitHub Templates for Repositories\",\"type\":\"how_to\"}]},{\"topic\":\"Common Problems\",\"order\":18,\"count\":19,\"queries\":[{\"slug\":\"how-to-fix-accidentally-committed-file\",\"title\":\"How to Fix an Accidentally Committed File in Git\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-authentication-failed-git\",\"title\":\"How to Fix Authentication Failed Error in Git\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-corrupted-git-repository\",\"title\":\"How to Fix a Corrupted Git Repository Quickly and Safely\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-detached-head-in-git\",\"title\":\"How to Fix Detached HEAD in Git Quickly and Easily\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-divergent-branches-in-git\",\"title\":\"How to Fix Divergent Branches in Git: Simple Steps\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-fatal-not-a-git-repository\",\"title\":\"How to Fix 'fatal: not a git repository' Error in Git\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-git-push-rejected\",\"title\":\"How to Fix Git Push Rejected Error Quickly\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-gitignore-not-working\",\"title\":\"How to Fix .gitignore Not Working in Git\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-head-detached-at-commit\",\"title\":\"How to Fix Detached HEAD at Commit in Git\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-large-file-error-git\",\"title\":\"How to Fix Large File Error in Git Quickly\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-line-ending-issues-git\",\"title\":\"How to Fix Line Ending Issues in Git Quickly\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-merge-conflict-in-git\",\"title\":\"How to Fix Merge Conflict in Git: Simple Steps\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-permission-denied-git\",\"title\":\"How to Fix Permission Denied Error in Git Quickly\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-remote-rejected-push-in-git\",\"title\":\"How to Fix Remote Rejected Push Error in Git\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-unable-to-merge-unrelated-histories\",\"title\":\"Fix Unable to Merge Unrelated Histories Error in Git\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-wrong-branch-commit\",\"title\":\"How to Fix a Commit Made on the Wrong Git Branch\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-your-branch-is-ahead\",\"title\":\"How to Fix 'Your Branch is Ahead' in Git Quickly\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-fix-your-branch-is-behind\",\"title\":\"How to Fix 'Your Branch is Behind' in Git Quickly\",\"type\":\"debug_fix\"},{\"slug\":\"how-to-move-commit-to-another-branch\",\"title\":\"How to Move a Commit to Another Branch in Git\",\"type\":\"how_to\"}]},{\"topic\":\"Git LFS\",\"order\":19,\"count\":6,\"queries\":[{\"slug\":\"how-to-install-git-lfs\",\"title\":\"How to Install Git LFS: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-migrate-to-git-lfs\",\"title\":\"How to Migrate to Git LFS: Step-by-Step Guide\",\"type\":\"how_to\"},{\"slug\":\"how-to-track-large-file-in-git-lfs\",\"title\":\"How to Track Large Files in Git LFS Easily\",\"type\":\"how_to\"},{\"slug\":\"how-to-use-git-lfs\",\"title\":\"How to Use Git LFS: Simple Guide for Large File Storage\",\"type\":\"how_to\"},{\"slug\":\"what-is-git-lfs\",\"title\":\"What is Git LFS: Large File Storage for Git Explained\",\"type\":\"what_is\"},{\"slug\":\"when-to-use-git-lfs\",\"title\":\"When to Use Git LFS: Managing Large Files in Git\",\"type\":\"what_is\"}]},{\"topic\":\"Git Comparisons\",\"order\":20,\"count\":14,\"queries\":[{\"slug\":\"git-add-dot-vs-git-add-a\",\"title\":\"Git add . vs git add -A: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-checkout-vs-git-switch\",\"title\":\"Git checkout vs git switch: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"git-clone-vs-git-fork\",\"title\":\"Git Clone vs Git Fork: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-merge-vs-git-rebase\",\"title\":\"Git Merge vs Git Rebase: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-pull-vs-git-fetch\",\"title\":\"Git Pull vs Git Fetch: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-reset-vs-git-revert\",\"title\":\"Git reset vs git revert: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-restore-vs-git-checkout\",\"title\":\"Git Restore vs Git Checkout: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"git-stash-pop-vs-git-stash-apply\",\"title\":\"Git stash pop vs git stash apply: Key Differences and Usage\",\"type\":\"comparison\"},{\"slug\":\"git-vs-bitbucket\",\"title\":\"Git vs Bitbucket: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-vs-github\",\"title\":\"Git vs GitHub: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-vs-gitlab\",\"title\":\"Git vs GitLab: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-vs-mercurial\",\"title\":\"Git vs Mercurial: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"git-vs-svn\",\"title\":\"Git vs SVN: Key Differences and When to Use Each\",\"type\":\"comparison\"},{\"slug\":\"github-vs-gitlab-vs-bitbucket\",\"title\":\"GitHub vs GitLab vs Bitbucket: Key Differences and When to Use Each\",\"type\":\"comparison\"}]}],\"activeSlug\":\"how-to-use-github-cli\"}]]\n"])</script><script>self.__next_f.push([1,"11:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"How to Use GitHub CLI: Basic Commands and Examples | Leyaa.ai\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Learn how to use GitHub CLI to manage repositories, issues, and pull requests from your terminal with simple commands.\"}],[\"$\",\"meta\",\"4\",{\"name\":\"author\",\"content\":\"Leyaa.ai\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"learning intelligence,AI learning,personalized learning,adaptive learning,study guide,exam preparation,learning platform,education technology,edtech,smart learning\"}],[\"$\",\"meta\",\"7\",{\"name\":\"creator\",\"content\":\"Leyaa.ai\"}],[\"$\",\"meta\",\"8\",{\"name\":\"publisher\",\"content\":\"Leyaa.ai\"}],[\"$\",\"meta\",\"9\",{\"name\":\"robots\",\"content\":\"index, follow\"}],[\"$\",\"meta\",\"10\",{\"name\":\"googlebot\",\"content\":\"index, follow, max-image-preview:large, max-snippet:-1\"}],[\"$\",\"link\",\"11\",{\"rel\":\"canonical\",\"href\":\"https://leyaa.ai/codefly/learn/git/qna/how-to-use-github-cli\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:title\",\"content\":\"How to Use GitHub CLI: Basic Commands and Examples | Leyaa.ai\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:description\",\"content\":\"Learn how to use GitHub CLI to manage repositories, issues, and pull requests from your terminal with simple commands.\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:url\",\"content\":\"https://leyaa.ai/codefly/learn/git/qna/how-to-use-github-cli\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:site_name\",\"content\":\"Leyaa.ai\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"article\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:title\",\"content\":\"How to Use GitHub CLI: Basic Commands and Examples | Leyaa.ai\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:description\",\"content\":\"Learn how to use GitHub CLI to manage repositories, issues, and pull requests from your terminal with simple commands.\"}],[\"$\",\"link\",\"20\",{\"rel\":\"icon\",\"href\":\"/leyaa-logo.png\"}],[\"$\",\"link\",\"21\",{\"rel\":\"apple-touch-icon\",\"href\":\"/leyaa-logo.png\"}],[\"$\",\"meta\",\"22\",{\"name\":\"next-size-adjust\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\n"])</script></body></html>