git tips and tricks

2023/08/05

Often needed little bits of git knowledge that I tend to forget.

Check out the contents of a GitHub PR

From: https://devopscube.com/checkout-git-pull-request/

git fetch origin pull/15/head:test-branch

This will fetch the PR number 15 from GitHub, and have it available in the local branch test-branch.