-
Notifications
You must be signed in to change notification settings - Fork 39
How to check out a remote branch
cgebken edited this page Mar 26, 2018
·
2 revisions
In order to view a blog post on your localhost (rendering it) that is not yours, check out the related branch. That way, you can also run the tests.
Follow these steps in order to prepare for checking out a branch (Note: this guide is only for SourceTree users):
- Open SourceTree.
- Click Repository --> Repository settings (at the top of the screen).
- Click Remotes.
- Click Add.
- Choose a meaningful name as Remote name, e.g. the name of the branch owner.
- To enter the URL/path, follow these steps:
- Go to the GitHub profile of the branch owner (if you do not know the user name, ask the owner)
- Go to the personal epages-devblog repo of the branch owner.
- Click Clone or download.
- Copy the path.
- Paste the path into the URL/path field in SourceTree.
- Click OK.
- Click OK. --> The Remote name will be shown in the left sidebar in the Remotes section. To finally check out the remote branch:
- Double-click the Remote name.
- Click Fetch.
- Click OK.
You can now render the post and run the tests as you know it from your own branches. For more information, see Getting started.