#git
Posts tagged with “git”.
18 posts
Contributing to Open Source: A Practical Start
Find a project, find an issue, and get a pull request merged. Learn the etiquette, the workflow, and the mistakes that stall a contribution.
Conventional Commits: A Practical Guide
A commit message format that enables automation. Learn the types, the scope, the breaking change marker, and the tooling it unlocks.
Git Aliases and Config: Speeding Up Your Workflow
Aliases and config settings remove friction from daily Git use. Learn the useful ones and how to set them up.
Git Bisect: Finding the Commit That Broke It
Bisect does a binary search through history to find the commit that introduced a bug. Learn the workflow and how to automate it.
Git Branching Strategies Compared
Trunk-based, Git Flow, and GitHub Flow each suit different teams. Learn how they work, the trade-offs, and how to choose one.
Git Cherry-Pick: Copying a Commit to Another Branch
Cherry-pick applies one commit to another branch. Learn the syntax, the conflicts, the ranges, and when a merge is better.
How to Write Good Git Commit Messages
A commit message is documentation for the future. Learn the conventions, the structure, and the habits that make history useful.
Git Hooks: Automating Checks Before Commit and Push
Hooks run scripts at points in the Git workflow. Learn the useful ones, how to share them, and why Husky exists.
Handling Large Files in Git: LFS and Alternatives
Git is bad at large binaries. Learn why, how Git LFS works, and how to clean a repository that already has them.
Git Merge vs Rebase: When to Use Each
Merge preserves history, rebase rewrites it. Learn the difference, the golden rule, and how to choose for your workflow.
Git Stash: Saving Work Without Committing
Stash shelves uncommitted changes so you can switch context. Learn the commands, the pitfalls, and when a commit is better.
Git Submodules Explained: When and How to Use Them
A submodule is a repository inside a repository. Learn the commands, the detached HEAD, the alternatives, and the traps.
Git Submodules vs Subtrees: Sharing Code Between Repos
Submodules and subtrees both embed one repository in another. Learn how each works and which to choose.
How to Undo Almost Anything in Git
Reset, revert, restore, and reflog. Learn which command undoes which situation, and how to recover from a mistake safely.
Git Worktrees: Working on Two Branches at Once
Worktrees let you check out multiple branches in separate directories from one repository. Learn when they beat stashing.
Gitignore Patterns: How to Ignore the Right Files
A .gitignore is a set of patterns, and the rules are subtle. Learn the syntax, the precedence, and the mistakes to avoid.
Git Commands for Beginners: The 12 You Actually Need
Learn the Git commands you actually use every day: init, add, commit, push, pull, branch, merge, stash and how to undo mistakes safely.
Dotfiles Setup: A Reproducible Dev Environment
Build a dotfiles repository you can apply to any machine in minutes — repo layout, Stow vs chezmoi vs yadm, bootstrap scripts, and keeping secrets out of git.