working-with-git
/working-with-git
Use when working with Git itself — any git command or flag, version control concepts, rewriting history (rebase/filter-repo/amend), bisect, recovering from mistakes (reflog, reset vs revert vs restore, dropped commits/stashes), merges and resolving conflicts, branching models, remotes, submodules, hooks, and setting up or connecting to Git servers (bare repos, SSH, git daemon, self-hosting). The command/concept reference is the AsciiDoc straight from git/git pinned to a Homebrew-resolved Git version, plus the full Pro Git book; opinionated how-to guides cover the operations people get wrong. I
- Author
- joeblackwaslike ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 306
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/update_docs.js
What it does and when to use it
Use when working with Git itself — any git command or flag, version control concepts, rewriting history (rebase/filter-repo/amend), bisect, recovering from mistakes (reflog, reset vs revert vs restore, dropped commits/stashes), merges and resolving conflicts, branching models, remotes, submodules, hooks, and setting up or connecting to Git servers (bare repos, SSH, git daemon, self-hosting). The command/concept reference is the AsciiDoc straight from git/git pinned to a Homebrew-resolved Git version, plus the full Pro Git book; opinionated how-to guides cover the operations people get wrong. I
Original author description
Use when working with Git itself — any git command or flag, version control concepts, rewriting history (rebase/filter-repo/amend), bisect, recovering from mistakes (reflog, reset vs revert vs restore, dropped commits/stashes), merges and resolving conflicts, branching models, remotes, submodules, hooks, and setting up or connecting to Git servers (bare repos, SSH, git daemon, self-hosting). The command/concept reference is the AsciiDoc straight from git/git pinned to a Homebrew-resolved Git version, plus the full Pro Git book; opinionated how-to guides cover the operations people get wrong. I
How it works
- Scope / where to go instead
- Quick reference
- How to use this skill
- Behavioral guidance
- Keeping this current
SKILL.md preview
--- name: working-with-git description: "Use when working with Git itself — any git command or flag, version control concepts, rewriting history (rebase/filter-repo/amend), bisect, recovering from mistakes (reflog, reset vs revert vs restore, dropped commits/stashes), merges and resolving conflicts, branching models, remotes, submodules, hooks, and setting up or connecting to Git servers (bare repos, SSH, git daemon, self-hosting). The command/concept reference is the AsciiDoc straight from git/git pinned to a Homebrew-resolved Git version, plus the full Pro Git book; opinionated how-to guides cover the operations people get wrong. Invoke for any 'git <command>' question or git troubleshooting. For GitHub-specific things (gh CLI, PRs, the API), use working-with-github." metadata: last_updated: "2026-08-23" --- # Working with Git Offline reference for **Git the version-control system**, pinned to a known Git release (see [`PINNED_VERSION`](PINNED_VERSION) / [`references/VERSIONS.md`](references/VERSIONS.md), resolved via Homebrew). Command and concept pages in [`references/cli/`](references/cli/) are the **AsciiDoc sources from `git/git`** at the pinned tag; the full **Pro Git** book (2nd ed.) is in [`references/book/`](references/book/); opinionated how-to guides are in [`references/howto/`](references/howto/). Fetched files carry `source`/`fetched_at`/`sha256` frontmatter; the how-to guides are hand-written. ## Scope / where to go instead - **GitHub** (gh CLI, PRs, REST/GraphQL, releases, issues) → `working-with-github` - **CI/CD workflows** → `working-with-github-actions` - **Building GitHub Apps / Octokit** → `developing-for-github` - **This skill** = raw git only. ## Quick reference | Task | Read | |---|---| | Exact flags for a command | `references/cli/git-<command>.adoc` (e.g. `git-rebase.adoc`, `git-commit.adoc`) | | Concept page (attributes, hooks, revisions, glossary) | `references/cli/git<topic>.adoc` (e.g. `gitrevisions.adoc`, `githooks.adoc`, `gitglossary.adoc`) | | Learn a topic deeply | `references/book/*.asc` (Pro Git, e.g. `03-git-branching__*`) | | Rewrite history safely | `references/howto/rewriting-history.md` | | Find the commit that broke it | `references/howto/bisect.md` | | Undo / recover (reflog, reset/revert/restore, lost commits) | `references/howto/fixing-mistakes.md` | | Merge vs rebase, resolve conflicts, rerere | `references/howto/merging-and-conflicts.md` | | Host or connect to a Git server | `references/howto/git-servers.md` | | Worktree conventions for feature/parallel-agent work | `references/howto/worktree-conventions.md` | ## How to use this skill 1. **Exact command behavior/flags** — read `references/cli/git-<command>.adoc`. These are the literal man-page sources for the **pinned** Git version; trust your local `git help <command>` if it disagrees and surface the drift. 2. **Conceptual understanding** — read the relevant Pro Git chapter in `references/book/` (filenames are the chapter path flattened with `__`). 3. **"How do I safely do X"** — start with `references/howto/*.md`; these are the opinionated playbooks for the dangerous/confusing operations. 4. **Searching** — `grep -ri <term> references/` across all three. ## Behavioral guidance - **History rewriting is destructive.** On shared branches, always `git push --force-with-lease` (never bare `--force`), and confirm no one else has the branch. See `references/howto/rewriting-history.md`. - **`git stash` drops untracked files** unless you pass `-u`. Reach for `git stash -u` when in doubt. - **Reflog is the safety net** — almost any "lost" commit is recoverable via `git reflog` for ~90 days. Check it before declaring data lost. ## Keeping this current Regenerated by [`scripts/update_docs.js`](scripts/update_docs.js): it re-resolves the Git stable version from Homebrew, rewrites `PINNED_VERSION`, fetches the matching `git/git` AsciiDoc, and refetches Pro Git. Refresh locally with `make update-working-with-git`. In CI (no Homebrew) the committed pin tag is used unchanged.
Files in this package (306)
- PINNED_VERSION 1 KB
- SKILL.md 4 KB
- references/VERSIONS.md 1 KB
- references/book/01-introduction__sections__about-version-control.asc 5 KB
- references/book/01-introduction__sections__command-line.asc 1 KB
- references/book/01-introduction__sections__first-time-setup.asc 6 KB
- references/book/01-introduction__sections__help.asc 3 KB
- references/book/01-introduction__sections__history.asc 2 KB
- references/book/01-introduction__sections__installing.asc 6 KB
- references/book/01-introduction__sections__what-is-git.asc 8 KB
- references/book/02-git-basics__sections__aliases.asc 3 KB
- references/book/02-git-basics__sections__getting-a-repository.asc 4 KB
- references/book/02-git-basics__sections__recording-changes.asc 25 KB
- references/book/02-git-basics__sections__remotes.asc 11 KB
- references/book/02-git-basics__sections__tagging.asc 9 KB
- references/book/02-git-basics__sections__undoing.asc 9 KB
- references/book/02-git-basics__sections__viewing-history.asc 13 KB
- references/book/03-git-branching__sections__basic-branching-and-merging.asc 13 KB
- references/book/03-git-branching__sections__branch-management.asc 6 KB
- references/book/03-git-branching__sections__nutshell.asc 10 KB
- references/book/03-git-branching__sections__rebasing.asc 14 KB
- references/book/03-git-branching__sections__remote-branches.asc 14 KB
- references/book/03-git-branching__sections__workflows.asc 5 KB
- references/book/04-git-server__sections__generating-ssh-key.asc 3 KB
- references/book/04-git-server__sections__git-daemon.asc 3 KB
- references/book/04-git-server__sections__git-on-a-server.asc 6 KB
- references/book/04-git-server__sections__gitlab.asc 8 KB
- references/book/04-git-server__sections__gitweb.asc 3 KB
- references/book/04-git-server__sections__hosted.asc 1 KB
- references/book/04-git-server__sections__protocols.asc 14 KB
- references/book/04-git-server__sections__setting-up-server.asc 6 KB
- references/book/04-git-server__sections__smart-http.asc 4 KB
- references/book/05-distributed-git__sections__contributing.asc 37 KB
- references/book/05-distributed-git__sections__distributed-workflows.asc 7 KB
- references/book/05-distributed-git__sections__maintaining.asc 29 KB
- references/book/06-github__sections__1-setting-up-account.asc 5 KB
- references/book/06-github__sections__2-contributing.asc 28 KB
- references/book/06-github__sections__3-maintaining.asc 22 KB
- references/book/06-github__sections__4-managing-organization.asc 5 KB
- references/book/06-github__sections__5-scripting.asc 14 KB
- references/book/07-git-tools__sections__advanced-merging.asc 26 KB
- references/book/07-git-tools__sections__bundling.asc 7 KB
- references/book/07-git-tools__sections__credentials.asc 10 KB
- references/book/07-git-tools__sections__debugging.asc 9 KB
- references/book/07-git-tools__sections__interactive-staging.asc 8 KB
- references/book/07-git-tools__sections__replace.asc 9 KB
- references/book/07-git-tools__sections__rerere.asc 8 KB
- references/book/07-git-tools__sections__reset.asc 17 KB
- references/book/07-git-tools__sections__revision-selection.asc 17 KB
- references/book/07-git-tools__sections__rewriting-history.asc 19 KB
- references/book/07-git-tools__sections__searching.asc 7 KB
- references/book/07-git-tools__sections__signing.asc 7 KB
- references/book/07-git-tools__sections__stashing-cleaning.asc 12 KB
- references/book/07-git-tools__sections__submodules.asc 41 KB
- references/book/07-git-tools__sections__subtree-merges.asc 5 KB
- references/book/08-customizing-git__sections__attributes.asc 17 KB
- references/book/08-customizing-git__sections__config.asc 21 KB
- references/book/08-customizing-git__sections__hooks.asc 9 KB
- references/book/08-customizing-git__sections__policy.asc 18 KB
- references/book/09-git-and-other-scms__sections__client-hg.asc 14 KB
- references/book/09-git-and-other-scms__sections__client-p4.asc 29 KB
- references/book/09-git-and-other-scms__sections__client-svn.asc 24 KB
- references/book/09-git-and-other-scms__sections__import-custom.asc 13 KB
- references/book/09-git-and-other-scms__sections__import-hg.asc 6 KB
- references/book/09-git-and-other-scms__sections__import-p4.asc 4 KB
- references/book/09-git-and-other-scms__sections__import-svn.asc 6 KB
- references/book/10-git-internals__sections__environment.asc 14 KB
- references/book/10-git-internals__sections__maintenance.asc 15 KB
- references/book/10-git-internals__sections__objects.asc 18 KB
- references/book/10-git-internals__sections__packfiles.asc 8 KB
- references/book/10-git-internals__sections__plumbing-porcelain.asc 3 KB
- references/book/10-git-internals__sections__refs.asc 8 KB
- references/book/10-git-internals__sections__refspec.asc 6 KB
- references/book/10-git-internals__sections__transfer-protocols.asc 12 KB
- references/book/A-git-in-other-environments__sections__bash.asc 2 KB
- references/book/A-git-in-other-environments__sections__guis.asc 9 KB
- references/book/A-git-in-other-environments__sections__jetbrainsides.asc 1 KB
- references/book/A-git-in-other-environments__sections__powershell.asc 4 KB
- references/book/A-git-in-other-environments__sections__sublimetext.asc 1 KB
- references/book/A-git-in-other-environments__sections__visualstudio.asc 1 KB
- references/book/A-git-in-other-environments__sections__visualstudiocode.asc 1 KB
- references/book/A-git-in-other-environments__sections__zsh.asc 3 KB
- references/book/B-embedding-git__sections__command-line.asc 1 KB
- references/book/B-embedding-git__sections__dulwich.asc 1 KB
- references/book/B-embedding-git__sections__go-git.asc 3 KB
- references/book/B-embedding-git__sections__jgit.asc 8 KB
- references/book/B-embedding-git__sections__libgit2.asc 11 KB
- references/book/contributors.asc 1 KB
- references/book/dedication.asc 1 KB
- references/book/introduction.asc 5 KB
- references/book/license.asc 1 KB
- references/book/preface_ben.asc 1 KB
- references/book/preface_schacon.asc 3 KB
- references/book/toc.asc 1 KB
- references/cli/git-add.adoc 16 KB
- references/cli/git-am.adoc 10 KB
- references/cli/git-annotate.adoc 1 KB
- references/cli/git-apply.adoc 11 KB
- references/cli/git-archimport.adoc 4 KB
- references/cli/git-archive.adoc 9 KB
- references/cli/git-backfill.adoc 3 KB
- references/cli/git-bisect-lk2009.adoc 49 KB
- references/cli/git-bisect.adoc 18 KB
- references/cli/git-blame.adoc 9 KB
- references/cli/git-branch.adoc 16 KB
- references/cli/git-bugreport.adoc 3 KB
- references/cli/git-bundle.adoc 13 KB
- references/cli/git-cat-file.adoc 15 KB
- references/cli/git-check-attr.adoc 4 KB
- references/cli/git-check-ignore.adoc 4 KB
- references/cli/git-check-mailmap.adoc 2 KB
- references/cli/git-check-ref-format.adoc 5 KB
- references/cli/git-checkout-index.adoc 6 KB
- references/cli/git-checkout.adoc 22 KB
- references/cli/git-cherry-pick.adoc 9 KB
- references/cli/git-cherry.adoc 4 KB
- references/cli/git-citool.adoc 1 KB
- references/cli/git-clean.adoc 5 KB
- references/cli/git-clone.adoc 17 KB
- references/cli/git-column.adoc 2 KB
- references/cli/git-commit-graph.adoc 6 KB
- references/cli/git-commit-tree.adoc 3 KB
- references/cli/git-commit.adoc 21 KB
- references/cli/git-config.adoc 21 KB
- references/cli/git-count-objects.adoc 2 KB
- references/cli/git-credential-cache--daemon.adoc 1 KB
- references/cli/git-credential-cache.adoc 3 KB
- references/cli/git-credential-store.adoc 4 KB
- references/cli/git-credential.adoc 12 KB
- references/cli/git-cvsexportcommit.adoc 3 KB
- references/cli/git-cvsimport.adoc 8 KB
- references/cli/git-cvsserver.adoc 16 KB
- references/cli/git-daemon.adoc 13 KB
- references/cli/git-describe.adoc 8 KB
- references/cli/git-diagnose.adoc 2 KB
- references/cli/git-diff-files.adoc 1 KB
- references/cli/git-diff-index.adoc 5 KB
- references/cli/git-diff-pairs.adoc 2 KB
- references/cli/git-diff-tree.adoc 4 KB
- references/cli/git-diff.adoc 8 KB
- references/cli/git-difftool.adoc 5 KB
- references/cli/git-fast-export.adoc 13 KB
- references/cli/git-fast-import.adoc 62 KB
- references/cli/git-fetch-pack.adoc 4 KB
- references/cli/git-fetch.adoc 12 KB
- references/cli/git-filter-branch.adoc 31 KB
- references/cli/git-fmt-merge-msg.adoc 2 KB
- references/cli/git-for-each-ref.adoc 16 KB
- references/cli/git-for-each-repo.adoc 2 KB
- references/cli/git-format-patch.adoc 30 KB
- references/cli/git-fsck-objects.adoc 1 KB
- references/cli/git-fsck.adoc 6 KB
- references/cli/git-fsmonitor--daemon.adoc 4 KB
- references/cli/git-gc.adoc 7 KB
- references/cli/git-get-tar-commit-id.adoc 1 KB
- references/cli/git-grep.adoc 11 KB
- references/cli/git-gui.adoc 4 KB
- references/cli/git-hash-object.adoc 2 KB
- references/cli/git-help.adoc 8 KB
- references/cli/git-history.adoc 4 KB
- references/cli/git-hook.adoc 7 KB
- references/cli/git-http-backend.adoc 12 KB
- references/cli/git-http-fetch.adoc 2 KB
- references/cli/git-http-push.adoc 3 KB
- references/cli/git-imap-send.adoc 7 KB
- references/cli/git-index-pack.adoc 6 KB
- references/cli/git-init-db.adoc 1 KB
- references/cli/git-init.adoc 6 KB
- references/cli/git-instaweb.adoc 2 KB
- references/cli/git-interpret-trailers.adoc 13 KB
- references/cli/git-last-modified.adoc 2 KB
- references/cli/git-log.adoc 7 KB
- references/cli/git-ls-files.adoc 12 KB
- references/cli/git-ls-remote.adoc 5 KB
- references/cli/git-ls-tree.adoc 6 KB
- references/cli/git-mailinfo.adoc 4 KB
- references/cli/git-mailsplit.adoc 2 KB
- references/cli/git-maintenance.adoc 20 KB
- references/cli/git-merge-base.adoc 8 KB
- references/cli/git-merge-file.adoc 4 KB
- references/cli/git-merge-index.adoc 3 KB
- references/cli/git-merge-one-file.adoc 1 KB
- references/cli/git-merge-tree.adoc 13 KB
- references/cli/git-merge.adoc 15 KB
- references/cli/git-mergetool--lib.adoc 2 KB
- references/cli/git-mergetool.adoc 5 KB
- references/cli/git-mktag.adoc 2 KB
- references/cli/git-mktree.adoc 1 KB
- references/cli/git-multi-pack-index.adoc 6 KB
- references/cli/git-mv.adoc 2 KB
- references/cli/git-name-rev.adoc 3 KB
- references/cli/git-notes.adoc 14 KB
- references/cli/git-p4.adoc 28 KB
- references/cli/git-pack-objects.adoc 22 KB
- references/cli/git-pack-redundant.adoc 2 KB
- references/cli/git-pack-refs.adoc 2 KB
- references/cli/git-patch-id.adoc 4 KB
- references/cli/git-prune-packed.adoc 1 KB
- references/cli/git-prune.adoc 2 KB
- references/cli/git-pull.adoc 8 KB
- references/cli/git-push.adoc 29 KB
- references/cli/git-quiltimport.adoc 2 KB
- references/cli/git-range-diff.adoc 11 KB
- references/cli/git-read-tree.adoc 17 KB
- references/cli/git-rebase.adoc 46 KB
- references/cli/git-receive-pack.adoc 10 KB
- references/cli/git-reflog.adoc 6 KB
- references/cli/git-refs.adoc 3 KB
- references/cli/git-remote-ext.adoc 4 KB
- references/cli/git-remote-fd.adoc 2 KB
- references/cli/git-remote.adoc 9 KB
- references/cli/git-repack.adoc 11 KB
- references/cli/git-replace.adoc 5 KB
- references/cli/git-replay.adoc 8 KB
- references/cli/git-repo.adoc 4 KB
- references/cli/git-request-pull.adoc 2 KB
- references/cli/git-rerere.adoc 8 KB
- references/cli/git-reset.adoc 19 KB
- references/cli/git-restore.adoc 7 KB
- references/cli/git-rev-list.adoc 3 KB
- references/cli/git-rev-parse.adoc 17 KB
- references/cli/git-revert.adoc 6 KB
- references/cli/git-rm.adoc 7 KB
- references/cli/git-send-email.adoc 28 KB
- references/cli/git-send-pack.adoc 5 KB
- references/cli/git-sh-i18n--envsubst.adoc 1 KB
- references/cli/git-sh-i18n.adoc 1 KB
- references/cli/git-sh-setup.adoc 3 KB
- references/cli/git-shell.adoc 3 KB
- references/cli/git-shortlog.adoc 5 KB
- references/cli/git-show-branch.adoc 7 KB
- references/cli/git-show-index.adoc 2 KB
- references/cli/git-show-ref.adoc 7 KB
- references/cli/git-show.adoc 2 KB
- references/cli/git-sparse-checkout.adoc 22 KB
- references/cli/git-stage.adoc 1 KB
- references/cli/git-stash.adoc 16 KB
- references/cli/git-status.adoc 20 KB
- references/cli/git-stripspace.adoc 2 KB
- references/cli/git-submodule.adoc 21 KB
- references/cli/git-svn.adoc 46 KB
- references/cli/git-switch.adoc 9 KB
- references/cli/git-symbolic-ref.adoc 3 KB
- references/cli/git-tag.adoc 15 KB
- references/cli/git-tools.adoc 1 KB
- references/cli/git-unpack-file.adoc 1 KB
- references/cli/git-unpack-objects.adoc 1 KB
- references/cli/git-update-index.adoc 24 KB
- references/cli/git-update-ref.adoc 8 KB
- references/cli/git-update-server-info.adoc 1 KB
- references/cli/git-upload-archive.adoc 2 KB
- references/cli/git-upload-pack.adoc 3 KB
- references/cli/git-var.adoc 3 KB
- references/cli/git-verify-commit.adoc 1 KB
- references/cli/git-verify-pack.adoc 1 KB
- references/cli/git-verify-tag.adoc 1 KB
- references/cli/git-version.adoc 1 KB
- references/cli/git-web--browse.adoc 4 KB
- references/cli/git-whatchanged.adoc 1 KB
- references/cli/git-worktree.adoc 22 KB
- references/cli/git-write-tree.adoc 1 KB
- references/cli/git.adoc 46 KB
- references/cli/gitattributes.adoc 50 KB
- references/cli/gitcli.adoc 11 KB
- references/cli/gitcore-tutorial.adoc 61 KB
- references/cli/gitcredentials.adoc 12 KB
- references/cli/gitcvs-migration.adoc 8 KB
- references/cli/gitdatamodel.adoc 11 KB
- references/cli/gitdiffcore.adoc 14 KB
- references/cli/giteveryday.adoc 14 KB
- references/cli/gitfaq.adoc 28 KB
- references/cli/gitformat-bundle.adoc 3 KB
- references/cli/gitformat-chunk.adoc 6 KB
- references/cli/gitformat-commit-graph.adoc 8 KB
- references/cli/gitformat-index.adoc 15 KB
- references/cli/gitformat-loose.adoc 6 KB
- references/cli/gitformat-pack.adoc 27 KB
- references/cli/gitformat-signature.adoc 8 KB
- references/cli/gitglossary.adoc 1 KB
- references/cli/githooks.adoc 29 KB
- references/cli/gitignore.adoc 9 KB
- references/cli/gitk.adoc 5 KB
- references/cli/gitmailmap.adoc 4 KB
- references/cli/gitmodules.adoc 5 KB
- references/cli/gitnamespaces.adoc 3 KB
- references/cli/gitpacking.adoc 8 KB
- references/cli/gitprotocol-capabilities.adoc 15 KB
- references/cli/gitprotocol-common.adoc 3 KB
- references/cli/gitprotocol-http.adoc 18 KB
- references/cli/gitprotocol-pack.adoc 27 KB
- references/cli/gitprotocol-v2.adoc 35 KB
- references/cli/gitremote-helpers.adoc 21 KB
- references/cli/gitrepository-layout.adoc 12 KB
- references/cli/gitrevisions.adoc 1 KB
- references/cli/gitsubmodules.adoc 10 KB
- references/cli/gittutorial-2.adoc 15 KB
- references/cli/gittutorial.adoc 23 KB
- references/cli/gitweb.adoc 27 KB
- references/cli/gitworkflows.adoc 17 KB
- references/howto/bisect.md 5 KB
Versions
The database has no other skills named working-with-git.
Database snapshot: 13.11.2026 · package version 20d926927b66 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100git-flow
Use this skill when committing, branching, opening a pull request, resolving conflicts, or recovering from a git mistake in any repository. Triggers: user mentions "commit", "branch", "PR", "pull request", "merge", "rebase", "conflict", "stash", "cherry-pick", "revert",… - 100git-guru
Git 大师技能,涵盖交互式变基、工作树管理、reflog 恢复、bisect 调试、高级工作流、提交信息最佳实践和清晰的历史管理。使用此技能进行高级 Git 操作、清理提交历史、管理多个工作树、恢复丢失的提交、使用 bisect 调试或实现复杂的 Git 工作流时使用。 - 95git-guru
Expert Git skills covering interactive rebase, worktree management, reflog recovery, bisect debugging, advanced workflows, commit message best practices, and clean history management. Use this skill when needing advanced Git operations, cleaning commit history, managing multiple… - 100git-workflow
Git branching, commits, PRs, and release workflows. Use for anything under .git, and for tricky operations — interactive rebase, cherry-picking, bisecting, reflog recovery. To resolve an in-progress merge or rebase conflict, use the resolving-merge-conflicts skill. - 100git
Git version control essentials and best practices. Use when working with git repositories, commits, branches, merges, rebases, remotes, or resolving conflicts. Triggers on git commands, branch operations, merge/rebase questions, or version control workflows. - 100git-workflow
Keep a Git history that is easy to review, bisect, release and recover: short-lived branches off trunk, small atomic commits with clear messages, rebase for local work and never for shared history, safe force pushes, recovery with reflog and revert, and history rewrites with…