Why git checkout -b Sometimes Sets an Upstream

Branching from origin/main configures tracking automatically; branching from a local main does not. The rule behind it is branch.autoSetupMerge.

Last updated on September 2, 2026 · 266 words

How to Update a Shallow Git Repository

Learn how to update a shallow-cloned Git repository with the latest commit or a specific branch, and how to convert it to a full clone.

Last updated on June 13, 2025 · 179 words

Git Profiles

No more git config name and email. Git profiles will handle that for you.

Last updated on September 22, 2025 · 281 words