S
S
Schoolboy.2016-06-03 10:14:57
git
Schoolboy., 2016-06-03 10:14:57

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

3 answer(s)
S
shagguboy, 2016-06-03
@shagguboy

git works over ssh. ssh doesn't store passwords anywhere. keys are stored by default in the user folder.

L
lexnekr, 2016-06-03
@lexnekr

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.

S
Saboteur, 2016-06-03
@saboteur_kiev

The settings for the git are in the home folder, such as
$HOME/.gitconfig Authorization
data - if enabled, their storage is also in the home
$HOME/.git-crfedentials
And the settings of this project are stored in .git.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question