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 Answer
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
EXPERT
answered a month ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions