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

Support option for to set user name and email globally #1349

Open
cboettig opened this issue Sep 11, 2024 · 1 comment
Open

Support option for to set user name and email globally #1349

cboettig opened this issue Sep 11, 2024 · 1 comment

Comments

@cboettig
Copy link

Is your feature request related to a problem? Please describe.

I use this integration in large courses teaching git from university-managed Jupyterhubs. Overall the experience is excellent but a few things always frustrate students that I think could be addressed.

When a student first uses the tool they need to set their committer name and email. Sometimes the system pops open a helpful dialogue box for this. This is great as it does not assume the student is already an expert in bash. However, this dialogue has no mechanism to indicate a --global config, and only offers a repo-level configuration.

Other students see an error message instead of the dialogue box, like this:

Author identity unknown *** Please tell me who you are. Run git config --global user.email "[email protected]" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository

While I appreciate the helpful error message (especially this time including the suggestion to use --global by default!), students have no idea where or how to run this. Also I'm not sure why this error is displayed instead of the dialogue box (that seems like a bug to me).

Describe the solution you'd like

Whenever a user name /email is not set, thus preventing a commit, I would like the application to present the dialog box. I would also suggest providing a 'check box' (similar to what we get on the clone dialog) allowing users to make this setting global.

@cboettig
Copy link
Author

I think all we need is a checkbox to set this globally on

export class GitAuthorForm
, but I don't know any typescript...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant