I'm doing a course on a shared computer and I'm saving my work on github.
But of course... the repository is linked to the github account and they could do malicious pushes in the repository.
How would I unlink the git credentials of the computer and my project from my account every time I finish the class?
A kind of git logout.
You can uninstall the
"Credential manager"
one from Git. For it,Assuming you are in
windows
:navigate from the terminal to:
C:\Program Files\Git\mingw64\libexec\git-core
(or its equivalent forx86
) and place:If you're in
linux
, try:This way, it should prompt you for credentials for any commands that point to the remote server.
Taken from: How do I disable Git Credential Manager for Windows?