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
feita há um mês362 visualizações
1 Resposta
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
ESPECIALISTA
respondido há um mês
  • 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

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas