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.

1개 답변
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
전문가
답변함 한 달 전
  • 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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠