git-docs
Skill7 starsChanged 15 days agoMITView on GitHub
Official Git documentation, answered with links to the exact pages. Use for any Git question, including branching, merging and rebasing, undoing changes and reflog, worktrees and submodules, hooks and config, or revision syntax.
- Deletes or force-pushes
- Commits and pushes
In this repository69 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- caching-strategiesSkill
- database-normalizationSkill
- design-patternsSkill
- object-oriented-programming-paradigmSkill
- aadc-complianceSkill
- app-store-complianceSkill
- ccpa-cpra-complianceSkill
- coppa-complianceSkill
- dpdp-complianceSkill
- eprivacy-complianceSkill
- eu-ai-act-complianceSkill
- eu-dsa-complianceSkill
- gdpr-complianceSkill
- hipaa-hds-complianceSkill
- lgpd-complianceSkill
- pci-dss-complianceSkill
- pipeda-law25-complianceSkill
- pipl-csl-complianceSkill
- psd2-sca-complianceSkill
- uk-gdpr-complianceSkill
- us-state-privacy-complianceSkill
- world-wide-complianceSkill
- aws-cli-docsSkill
- aws-dynamodb-docsSkill
- aws-ecs-docsSkill
- aws-eks-docsSkill
- aws-iam-docsSkill
- aws-lambda-docsSkill
- aws-s3-docsSkill
- bullmq-docsSkill
- cassandra-docsSkill
- django-docsSkill
- docker-docsSkill
- elasticsearch-docsSkill
- expressjs-docsSkill
- fastapi-docsSkill
- fastify-docsSkill
- firebase-docsSkill
- flask-docsSkill
- github-actions-docsSkill
- gitlab-ci-docsSkill
- grafana-docsSkill
- graphql-docsSkill
- helm-docsSkill
- kafka-docsSkill
- kubernetes-docsSkill
- mongodb-docsSkill
- mysql-docsSkill
- nestjs-docsSkill
- nginx-docsSkill
- opensearch-docsSkill
- opentelemetry-docsSkill
- phoenix-docsSkill
- pinecone-docsSkill
- postgresql-16-docsSkill
- postgresql-17-docsSkill
- postgresql-18-docsSkill
- qdrant-docsSkill
- The first 60 shown.
The file
Files
Git Docs
Git answers drift with new commands and changing flag defaults, and blur into hosting-provider docs, so ground each answer in the live docs at https://git-scm.com/docs/, not memory, and link the exact page behind every claim.
Route GitHub Actions to github-actions-docs, and GitLab merge requests or CI/CD pipelines to gitlab-ci-docs. Other GitHub features (pull requests, GitHub CLI, repository settings) belong to GitHub's own docs, and GUI clients to their own docs, unless the question turns on the underlying Git command.
Workflow
- Locate the question in
references/topic-map.md, a selective index of docs entry points. Done when each part of the question maps to a section of the map, or you have noted that none fits. - Search
git-scm.comwith the user's exact terms plus Git vocabulary such as--force-with-lease,ORIG_HEAD,reflog,fast-forward,detached HEAD, orancestry path, starting from the map's pages and the Routing rules below. Done when you hold the one page that most directly answers each part. - Read each page down to the relevant section. Done when you have read the passage behind every claim you will make. When a page has moved, been renamed, or stops short, say so and link the nearest authoritative pages.
- Answer with the direct answer first, each docs link beside the claim it supports, and commands only when the user asks or the page needs them. Mark any conclusion that joins several pages as
Inference:. Done when every claim cites a specific page, not the docs home.
Routing
- Exact flags and syntax: the command reference under https://git-scm.com/docs/.
- Concepts and workflows: the Pro Git book at https://git-scm.com/book/en/v2; pick reference or book by the question's depth.
- Beginner questions: gittutorial and the Pro Git early chapters, before the full command reference.
- Undoing changes: tell
restore(working tree and index) fromreset(branch pointer and index),revert(a new commit undoing changes) andreflog(recovering lost commits). - Merge vs rebase: the Pro Git branching chapters.
- Plumbing commands (
git cat-file,git rev-parse,git hash-object): the Git internals chapters, before the terse man page. - Revision syntax (
HEAD^,A...B,:/pattern): gitrevisions directly. - Hooks: confirm client-side or server-side hooks before giving setup steps.
Gotchas
- Warn before any destructive or history-rewriting command:
reset --hardandclean -fdestroy uncommitted or untracked work, and rebasing pushed commits rewrites shared history. - Offer
--force-with-leaseas the safer alternative togit push --force. - Newer Git splits the multi-purpose
git checkoutintogit switchandgit restore; match advice to the split. - Pull requests, merge requests and forks are hosting-provider concepts; keep them apart from core Git.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

