0
votes
git config --global user.name and git config --global user.email

At First I executed above commands from my terminal.I have pushed few codes on my GitHub Now I'm switching to a different PC/laptop and I want to remove the access on my terminal completely so that if someone is using my system then they shouldn't get to know my git config details. What is the command to remove config details ?

1
Git config has nothing to do with access. It's used for telling git who the author of the commits is.evolutionxbox
Sounds like you need to be more worried about "someone" being able to sign into your computer as you... Why is this almost-inert config important rather than your ssh keys and/or other sensitive files? if you are giving your older computer to someone else or something, why aren't you wiping it? Please edit the question to clarify.AD7six

1 Answers

0
votes

git global settings are stored by default at:

~/.gitconfig

So probably you are fine just deleting that file. Keep in mind that local settings are stored inside each repository folder.

See more information with:

man git config