Skip to content

Add user config git.preferRemotes to OpenInBrowser on specified remotes #4113

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phanen
Copy link

@phanen phanen commented Dec 13, 2024

  • PR Description

When I clone a new repo, after gh repo fork, origin will be renamed to upstream.
In this case, I hope OpenInBrowser to try upstream first.

With this git.preferRemotes option, this behavior can be implemented by:

git:
  preferRemotes:
  - upstream
  - origin
  • Please check if the PR fulfills these requirements
  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

@phanen phanen force-pushed the feat/preferRemotes branch from 9912cb5 to d4b1107 Compare December 22, 2024 14:56
@phanen phanen force-pushed the feat/preferRemotes branch from d4b1107 to 9ad1a0e Compare December 23, 2024 01:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant