Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Use gh repo set-default information? #81

Open
nedbat opened this issue Jan 20, 2023 · 0 comments
Open

Use gh repo set-default information? #81

nedbat opened this issue Jan 20, 2023 · 0 comments

Comments

@nedbat
Copy link
Owner

nedbat commented Jan 20, 2023

The GitHub gh tool has a command gh repo set-default that sets a default remote when there is more than one. We could use this to determine which remote to use for scriv github-release.

When you use gh repo set-default nedbat/something, a setting is put into the .git/config file:

[remote "origin"]
        url = git@github.com:nedbat/something.git
        fetch = +refs/heads/*:refs/remotes/origin/*
        gh-resolved = base     # <--- new setting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant