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
已提問 1 個月前檢視次數 360 次
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
專家
已回答 1 個月前
  • 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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南