Due to some specialized hardware, we have one machine that is shared with a few developers. I would like git commits and pushes to always prompt for credentials. I've tried a couple fixes found on SO including git config --global --unset credential.helper
as well as editing the config to include askpass =
under [core]
. After doing both of these, I still get this when I try to commit:
PS C:\Projects\Windows\projectname> git commit -m "testing shared credentials"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'user@pcname.(none)')
I don't want to set a default identity. I want it to literally ask for a username and password every time. Is this possible?
Edit: I would be okay with perhaps setting a default identity of "Generic Developer" or something but still prompting for credentials.