Can we get the source code from the project .git folder

I have a git and security related question.

Suppose someone has access to your .git folder of your project.

Can he somehow get the source code of the project?

If so, how will he do it?

I am curious.

Thanks!

+4
source share
1 answer

That's right. All they need to do is clone it:

git clone C:\Repo\.git Copy

The contents of the directory .gitis a repository with all its objects , references and packfiles .

.git . , , .git:

git init --bare C:\Repo
+11

Source: https://habr.com/ru/post/1613794/


All Articles