You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Menu - Repository - Add 'View fork on GitHub' #13533
Describe the feature or problem you’d like to solve
The 'Repository' sub-menu contains a 'View on GitHub' command. If one is working in a fork, this opens the upstream web page. From the upstream web page, it's very inconvenient to get to one's fork. But, from one's fork web page, it's very convenient to get to the upstream web page.
Proposed solution
Add a 'View fork on GitHub' item to the 'Repository' sub-menu. This could be disabled if a fork is not in use.
Please share how this will it benefit Desktop and its users?
Make it easier to use a fork, which is a normal workflow.
Additional context
When working with GitHub repos, I use CLI, the desktop app, and the web UI. Old habits. I do know that features are always being added to desktop, and I and others appreciate that, but the web UI has a lot of content that the desktop may never have.
Thanks for the feedback @MSP-Greg. The View on GitHub action is based on the selected fork behavior in Repository > Repository Settings > Fork Behavior (just wanted to share that this was an option for reference). I'll label this as an enhancement for future consideration of having the specific menu item for forks.
I also want this feature.
I think this feature is very needed. When I provide pr to others, I need to come to my fork repo and make a pull request.
But from GitHub desktop, I can only access upstream repo first.😟😟
Thanks for the feedback @MSP-Greg. The View on GitHub action is based on the selected fork behavior in Repository > Repository Settings > Fork Behavior (just wanted to share that this was an option for reference). I'll label this as an enhancement for future consideration of having the specific menu item for forks.
Thank you for the solution you provided, which can temporarily solve my problem, but for many forks or I have to reset it after I delete the local repo. This is a very cumbersome and meaningless repetitive operation.😵😵
@RSS1102 If you want to tackle this, I would propose that:
Change the Repository > View on GitHub to be View Upstream/Fork on GitHub (Only when the repository is a fork, otherwise keep original menu item)
Add an additional menu item of, Repository > View Upstream/Fork on GitHub that is only visible when the repository is a fork.
The tricky part is that if we have a keyboard shortcut of Cmd/Ctrl + Shift + G that triggers the View on Github menu item action. For the sake of the muscle memory of current users, I wouldn't want to disrupt expected behaviors. Thus, logically that should remain the same and open the upstream if the Fork Behavior is to contribute to upstream and open the fork if it the Fork Behavior is set to be stand alone. In order to accomplish this, you would have to keep the menu item id of the View on GitHub the same and add the "Upstream" or "Fork" word in depending on the fork behavior, similarly the additional menu item would alternate between "View Fork" and "View Upstream" depending on selected Fork Behavior. In other words, "Fork Behavior" is to choose the "primary" action and we are adding a "secondary" action. The labeling of which changes depending on the Fork Behavior and if opening upstream or opening fork is primary.
In the "No local changes" screen, we have a "View on GitHub" option. Prefer to leave this one alone and if you implement the above menu items as I suggested, it should still keep todays behavior and open upstream vs fork depending on the Fork Behavior settings.
I hope that all makes sense and you can see why adding this is not super straight forward.
If one is working with a fork in GitHub Desktop, from the 'Branch' menu, one can select 'View branch on GitHub', which will open a web page with the fork, not upstream. Doesn't work for a branch that hasn't been pushed to the fork, but that's just a minimal mouse action.
So, I certainly can live without the feature. Not sure whether to close...
@tidy-dev Thank you for your suggestion.
I think view on github doesn't matter which branch it is. We just need to enter its repo, as marked in front of each repo, whether it is a fork or an Upstream branch.
Perhaps we should add a behavior in File — Options — xxx to decide whether view on github turns on "fork repo"(Here we determine the view on github method, and keep it unchanged by default. If the user does not actively modify it, it will not destroy the expected muscle behavior.).
only branch — view branch on Github needs to focus on branches (of course there seems to be a problem here, if there is a chance we can talk about it later).
The main function of view on github is to open my fork project, so that I can better use update branch or discard on commit or pull request....
Hi @jackfreem, are you still working on this? If not, I'd be happy to pick it up and open a PR adding "View fork on GitHub" / upstream link under the Repository menu.
Hi @jackfreem, are you still working on this? If not, I'd be happy to pick it up and open a PR adding "View fork on GitHub" / upstream link under the Repository menu.
I'm sorry to say that he has no activity in this repo since March this year.
Activity
steveward commentedon Dec 15, 2021
Thanks for the feedback @MSP-Greg. The
View on GitHubaction is based on the selected fork behavior inRepository>Repository Settings>Fork Behavior(just wanted to share that this was an option for reference). I'll label this as an enhancement for future consideration of having the specific menu item for forks.RSS1102 commentedon Sep 13, 2024
I also want this feature.
I think this feature is very needed. When I provide pr to others, I need to come to my fork repo and make a pull request.
But from GitHub desktop, I can only access upstream repo first.😟😟
RSS1102 commentedon Sep 13, 2024
Thank you for the solution you provided, which can temporarily solve my problem, but for many forks or I have to reset it after I delete the local repo. This is a very cumbersome and meaningless repetitive operation.😵😵
tidy-dev commentedon Jan 6, 2025
@RSS1102 If you want to tackle this, I would propose that:
Repository>View on GitHubto beView Upstream/Fork on GitHub(Only when the repository is a fork, otherwise keep original menu item)Repository>View Upstream/Fork on GitHubthat is only visible when the repository is a fork.The tricky part is that if we have a keyboard shortcut of Cmd/Ctrl + Shift + G that triggers the
View on Githubmenu item action. For the sake of the muscle memory of current users, I wouldn't want to disrupt expected behaviors. Thus, logically that should remain the same and open the upstream if the Fork Behavior is to contribute to upstream and open the fork if it the Fork Behavior is set to be stand alone. In order to accomplish this, you would have to keep the menu item id of theView on GitHubthe same and add the "Upstream" or "Fork" word in depending on the fork behavior, similarly the additional menu item would alternate between "View Fork" and "View Upstream" depending on selected Fork Behavior. In other words, "Fork Behavior" is to choose the "primary" action and we are adding a "secondary" action. The labeling of which changes depending on the Fork Behavior and if opening upstream or opening fork is primary.In the "No local changes" screen, we have a "View on GitHub" option. Prefer to leave this one alone and if you implement the above menu items as I suggested, it should still keep todays behavior and open upstream vs fork depending on the Fork Behavior settings.
I hope that all makes sense and you can see why adding this is not super straight forward.
MSP-Greg commentedon Jan 7, 2025
If one is working with a fork in GitHub Desktop, from the 'Branch' menu, one can select 'View branch on GitHub', which will open a web page with the fork, not upstream. Doesn't work for a branch that hasn't been pushed to the fork, but that's just a minimal mouse action.
So, I certainly can live without the feature. Not sure whether to close...
RSS1102 commentedon Jan 7, 2025
@tidy-dev Thank you for your suggestion.
I think
view on githubdoesn't matter which branch it is. We just need to enter its repo, as marked in front of each repo, whether it is a fork or an Upstream branch.Perhaps we should add a behavior in
File — Options — xxxto decide whetherview on githubturns on "fork repo"(Here we determine the view on github method, and keep it unchanged by default. If the user does not actively modify it, it will not destroy the expected muscle behavior.).only
branch — view branch on Githubneeds to focus on branches (of course there seems to be a problem here, if there is a chance we can talk about it later).The main function of
view on githubis to open my fork project, so that I can better useupdate branchordiscard on commitorpull request....jackfreem commentedon Jan 28, 2026
I'd like to do this; Will post a PR in the next few days.
Add Repository > View Upstream on GitHub
Add Repository > View Upstream on GitHub
Add Repository > View Upstream on GitHub
joelng25 commentedon Nov 3, 2026
Hi @jackfreem, are you still working on this? If not, I'd be happy to pick it up and open a PR adding "View fork on GitHub" / upstream link under the Repository menu.
PtJade-Ceramic commentedon Nov 4, 2026
I'm sorry to say that he has no activity in this repo since March this year.
Just do it.