From f1abf724154d3dab6cb7674858af91a030ea2272 Mon Sep 17 00:00:00 2001 From: Lacey Henschel Date: Fri, 23 Aug 2024 09:49:04 -0700 Subject: [PATCH] Create check_out_remote_branch.md --- git/check_out_remote_branch.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 git/check_out_remote_branch.md diff --git a/git/check_out_remote_branch.md b/git/check_out_remote_branch.md new file mode 100644 index 0000000..7f53335 --- /dev/null +++ b/git/check_out_remote_branch.md @@ -0,0 +1,13 @@ +# Checking out someone else's branch + +## Use case + +A colleague has opened a PR. I want to check out their branch on my own machine so I can run it and test their changes + +## Instructions + +- Get the branch name that you want +- Back in your terminal, run `git fetch` to load all the remote branch +- Then run `git checkout ` + +Another "thing I have known for a while but sometimes forget."