Sublime Forum

Make branch from fork on GitHub

#1

I have a pull request from a fork on my GitHub. How can I make a branch from the fork so I can test the code.

0 Likes

#2

Add the fork as a remote, then you can fetch the branches from that remote and create a local one from the branch which a PR was created from

0 Likes

#3

Is there any shortcut for this or any GitHub integration?

I don’t even know how to “Add the fork as a remote”. Do you need to dig around GitHub to find a URL for the branch or something?

I see this but I don’t think that helps.

0 Likes

#4

Sublime Merge is a general purpose git client, not targetting any code hoster specifically. It therefore doesn’t provide any github integration out of the box.

If reviewing a PR is the primary goal, my workflow is to just open the repository in terminal and run those gh pr checkout ... command line. It creates a local branch, you can work with as with any other local one.

1 Like

#5

Thanks, yes I think that’s the easiest thing to do for GitHub.

0 Likes