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

Improve discoverability of time-saving config options #682

Open
hickford opened this issue Apr 30, 2022 · 1 comment
Open

Improve discoverability of time-saving config options #682

hickford opened this issue Apr 30, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@hickford
Copy link
Contributor

hickford commented Apr 30, 2022

Config option credential.githubauthmodes can save the user time by remembering preferred authentication method, but this and similar config options are hard to discover without reading the docs.

A short message printed to terminal at the right moment could make relevant config options easier to discover, eg.

Select an authentication method for 'https://github.com/':
  1. Web browser (default)
  2. Device code
  3. Personal access token
option (enter for default): 1
info: always authenticate by web browser? git config --global credential.githubauthmodes browser
info: please complete authentication in your browser...

This would also help GUI users at the terminal, but not when git push is invoked via some other program without a terminal.

image

@hickford hickford added the enhancement New feature or request label Apr 30, 2022
@mjcheetham
Copy link
Collaborator

This would also help GUI users at the terminal, but not when git push is invoked via some other program without a terminal.

To help those latter users we could possibly add a "remember my choice" or "always use this method" checkbox and plumb that in pretty easily, and actually update the --global config.

image

@ldennington ldennington added this to the Future milestone Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants