Skip to content

Commit

Permalink
Create check_out_remote_branch.md
Browse files Browse the repository at this point in the history
  • Loading branch information
williln authored Aug 23, 2024
1 parent 7ad9b6a commit f1abf72
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions git/check_out_remote_branch.md
Original file line number Diff line number Diff line change
@@ -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 <branch-name>`

Another "thing I have known for a while but sometimes forget."

0 comments on commit f1abf72

Please sign in to comment.