Skip to content

Commit

Permalink
Update 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 dd197a3 commit 23a9cf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git/check_out_remote_branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ A colleague has opened a PR. I want to check out their branch on my own machine

## Instructions

**Assumptions**: You have the repo checked out and set up locally on your machine. You work on it regularly.

- 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>`

You are now in a new branch on your local machine that is a copy of the branch at the remote.

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

0 comments on commit 23a9cf9

Please sign in to comment.