This question is based on this thread.
I am interested in how Git decides where to save secret tokens exactly when you run
git remote add github...
In other words, I would like to know which file affects this behavior. I know that it can be changed, since that info was stored to my old .gitconfig, while it is now at .git/.
This may be a recent change in Git.
Which file does make Git to save secret tokens to /.git/?