{
  "dataset": "git-cheatsheet",
  "title": "Git cheat sheet",
  "version": "1.0.0",
  "updated": "2026-08-05",
  "source": {
    "name": "Official Git documentation, git-scm.com",
    "url": "https://git-scm.com/docs"
  },
  "checkedAt": null,
  "license": "CC BY 4.0",
  "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Data from quickref.tips",
  "documentation": "https://quickref.tips/reference/git-cheatsheet",
  "recordCount": 14,
  "data": [
    {
      "command": "git status",
      "what_it_does": "Show staged and unstaged changes"
    },
    {
      "command": "git add <file>",
      "what_it_does": "Stage a file for the next commit"
    },
    {
      "command": "git add -A",
      "what_it_does": "Stage every change"
    },
    {
      "command": "git commit -m \"msg\"",
      "what_it_does": "Record staged changes with a message"
    },
    {
      "command": "git log --oneline",
      "what_it_does": "Show a compact commit history"
    },
    {
      "command": "git diff",
      "what_it_does": "Show unstaged line by line changes"
    },
    {
      "command": "git branch",
      "what_it_does": "List local branches"
    },
    {
      "command": "git switch -c <name>",
      "what_it_does": "Create and switch to a branch"
    },
    {
      "command": "git merge <branch>",
      "what_it_does": "Merge a branch into the current one"
    },
    {
      "command": "git pull",
      "what_it_does": "Fetch and merge from the remote"
    },
    {
      "command": "git push",
      "what_it_does": "Send local commits to the remote"
    },
    {
      "command": "git clone <url>",
      "what_it_does": "Copy a remote repository locally"
    },
    {
      "command": "git restore <file>",
      "what_it_does": "Discard unstaged changes to a file. Destructive: the discarded work is not in any commit and cannot be recovered. Use git stash instead if you might want it back."
    },
    {
      "command": "git stash",
      "what_it_does": "Shelve changes to reapply later"
    }
  ]
}