Reset git credentials and User info in Sagemaker Studio

0

I am working on a shared space in Sagemaker Studio. We have a repo cloned in there. Are there any way to enforce every git push to be required to enter username and password? I tried to run git config --unset credential.helper, and git config --global credential.helper 'cache --timeout=900', none of the command works. I doubt that sagemaker studio restricted to modify these configs. Also, are there any way to reset the user.email and user.name automatically? These steps are crucial for tracking commit history for a shared environment.

HenryC
preguntada hace un mes362 visualizaciones
1 Respuesta
0

Hello.

How about having the user set the username and email address when "git commit" as shown below?
https://stackoverflow.com/questions/22058041/commit-without-setting-user-name-and-email

git -c user.name='Paul Draper' -c user.email='my@email.org' commit -m '...'
profile picture
EXPERTO
respondido hace un mes
  • but to connect to the git repo we still need to enter username and password. These credentials won't be refreshed until 2 hours later. If one user has account with higher authorization eg. can modify main branch without pull request, even other users set the username and email, they can still use the authorization of the first user

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas