DEV Community

Discussion on: I use the GitHub Desktop app for one thing. Am I doing this wrong?

Collapse
 
wuz profile image
Conlin Durbin

Not sure this is exactly your use case, but I hacked together a way to checkout a PR branch in a local repo by clicking the "Open in Github Desktop" application. It's pretty hacky, but it works:

wuz / open-in-local-git

Use "Open in Github Desktop" to check out the branch in your local repo.

open-in-local-git

Use "Open in Github Desktop" to check out the branch in your local repo.

This is an electron app the overrides the Github desktop application protocol handler to checkout a git branch on your local machine when you click the "Open in Github Desktop" link on a Github Pull Request.

Caution: this might replace the normal Github Desktop functionality. If you use it for anything other than the "Open in Github Desktop" link you probably don't want to use this!

Inspired by this thread on dev.to

Head over to Releases to download!


If people are interested/this works for them, I'll keep up on the issues and try to add some new features.