Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.74 KB

File metadata and controls

27 lines (22 loc) · 1.74 KB

Git Pack

This pack contains a comprehensive collection of Git commands, formatted for use with cheatmd.

It is designed to cover everything from basic daily workflows to advanced history rewriting and repository archaeology. The commands have been explicitly structured to be modular, atomic, and heavily utilize interactive variables so you don't need to memorize SHAs or branch names.

File Structure

  • basics.md: Core commands for staging, committing, pushing, and pulling.
  • branches.md: Creating, deleting, renaming, and switching branches.
  • remote.md: Managing remotes, fetching, and pushing.
  • undo.md: The "I messed up Git" file. Reverting, resetting, and amending commits safely.
  • history.md: Viewing logs, diffs, and the reflog.
  • stash.md: Saving and popping uncommitted changes.
  • tags.md: Creating and pushing tags.
  • revisions.md: Cherry-picking and resetting specific files.
  • cleanup.md: Pruning, garbage collection, and removing untracked files.
  • submodules.md: Managing Git submodules.
  • worktrees.md: Checking out multiple branches simultaneously.
  • archaeology.md: Advanced tools like bisect and blame for hunting down bugs.
  • config.md: Setting user details, aliases, and global ignores.
  • workflows.md: Multi-step workflows using cheatmd chains.

Features

  • Dynamic Branch Pickers: Commands like checkout and merge use git branch under the hood to let you visually pick your target branch.
  • Commit History Selectors: Revert and reset commands provide interactive pickers showing your recent commit history.
  • Chains: The workflows.md file links together multiple atomic commands into logical, multi-step actions (e.g. standard PR reviews or stash-and-pull workflows).