Answer the question
In order to leave comments, you need to log in
What is stored in the .git folder? Is there any data for authorization on GIT?
I connected to the repository and update it constantly, for this you need to enter the data to enter the git login. At the same time, the .git folder is in the directory. Whether authorization data is stored there on git. Is it possible to publish this folder?
Answer the question
In order to leave comments, you need to log in
git works over ssh. ssh doesn't store passwords anywhere. keys are stored by default in the user folder.
Some especially "smart" users connect to a remote server not via ssh, but via https and store the login password directly in the connection string. In order not to enter them every time when Push'e.
In this case, yes, the passwords will be in the configuration file in the /.git/ folder.
But in general, such an idea of storing the connection is bad even without publishing the git folder.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question