jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.46k stars 319 forks source link

Is there a way to switch git accounts by the GUI? #963

Open tristone13th opened 3 years ago

tristone13th commented 3 years ago

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

When multiple users use jupyterlab to do analysis and each of them wants to commit with their own name and account (maybe for KPI), is there a way to do this by the jupyterlab-git GUI?

Describe the solution you'd like

Add a button to change git user easily while preventing conflicts if multiple users are switching accounts at the same time.

Describe alternatives you've considered

If cannot deal with the problems introduced by multiple users switching accounts at the same time, that's ok.

welcome[bot] commented 3 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

fcollonval commented 3 years ago

Hey thanks for raising the question. This extension assumes only one user is owning the JupyterLab server. So there is currently no possibility to address your use case. This may come handy in the feature though especially with RTC coming into JupyterLab.

libo1999425 commented 5 months ago

now is there a way to support mutiple users use jupyterlab to commit code use different git account?

fcollonval commented 5 months ago

The current escape path is to set the setting promptUserIdentity to true.

libo1999425 commented 5 months ago

i search promptUserIdentity setting in offical document but can‘t find where to set this param, i search in jupyter_lab_config but not found

krassowski commented 5 months ago

Open JupyterLab, in the top menu bar click on SettingsSettings EditorGitPrompt user identity on commit

libo1999425 commented 5 months ago

Open JupyterLab, in the top menu bar click on SettingsSettings EditorGitPrompt user identity on commit

thanks! it's work!

libo1999425 commented 5 months ago

i find when i commit git just input username and email , not input the password ,even i input a username not exist,it commit success, i confused ,jupyterlab how to authenticate users?