
How to Manage GitHub Infrastructure with the Terraform GitHub Provider
Learn how to use the Terraform GitHub provider to provision and manage repositories, teams, and access permissions using Infrastructure as Code principles.
Topic
Guides and cheat sheets for Git branching, stashing, and repository management.
16 articles

Learn how to use the Terraform GitHub provider to provision and manage repositories, teams, and access permissions using Infrastructure as Code principles.

Learn how to safely git rename branch locally and remotely, update upstream tracking links, and avoid common collaboration pitfalls.

Master Git stash with this comprehensive guide covering essential commands, workflows, merge conflict handling, and best practices for developers.

Learn how to use git stash pop safely, understand how it differs from apply, handle merge conflicts, and keep your version control history clean.

Learn how to easily change a Git remote URL for both HTTPS and SSH protocols using the git set-url command without having to re-clone repositories.

Discover the critical differences between git reset and git revert. Learn how each command manages commit history, staging areas, and shared repositories safely.

Learn how to safely execute a git undo last commit operation. Discover the differences between git reset and git revert for local and pushed commits.

Learn how to delete a remote Git branch safely, use git push delete syntax, and clean up stale remote-tracking references in your version control workflow.

Learn the critical differences between git fetch and git pull, how they impact your local repository, and when to use each for a safer workflow.

Compare Git merge and rebase in depth. Learn how they handle history, conflicts, team workflows, and when to use each approach.

Learn how to use git restore to manage your working tree and staged files safely, avoid common mistakes, and replace confusing checkout commands.

Learn how to use git cherry-pick to selectively apply commits, handle conflicts safely, and manage advanced version control workflows in your projects.

Learn how to use git revert commit commands safely in collaborative environments, handle merge conflicts, and preserve remote repository history.

Learn how git reset --hard works, what data it removes, when to use it responsibly, and how to recover lost code using the reflog.

Learn how to delete local Git branches safely using git delete local branch commands. Master the difference between safe and forced deletion, handle unmerged changes, and clean up your repository effectively.

Learn how to effectively git resolve merge conflict scenarios with a comprehensive step-by-step tutorial, command examples, and safe resolution practices.