Category Git

Using git worktree to have multiple branches checked out at once

How to use git worktree to check out multiple Git branches from the same repo at once.

Using Git refs to check out GitHub Pull Requests, from your local repo

How to pull the Git refs for Pull Requests to your GitHub repo.

Using Git refs to check out GitLab Merge Requests, from your local repo

How to pull the Git refs for Merge Requests to your GitLab repo.

Using Git refs to help track your GitLab Environments, from your local repo

How to pull the Git refs that GitLab Environments exposes in your GitLab repo.

Using git commit --fixup= to track changes that need to be applied on top of another commit

Using git commit --fixup= and git rebase --autosquash to easily track and squash fix commits.

Backporting/Replaying Changes Using git cherry-pick

Using git cherry-pick to make it easier to backport or replay Git commits across different versions of your codebase.

Safely Force Pushing with Git using --force-with-lease=ref

How git push --force-with-lease=ref can save you from overriding others' changes on shared Git branches.

Viewing Git history of a file in git log while ignoring file renames

How to track changes to files in Git without pesky file renames getting in the way, using git log --follow.