Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accidentally shared .git folder

Tags:

git

github

I've accidentally emailed my .git folder to someone.

Would they be able to git pull and clone without the ssh key, which is stored in another dir?

like image 612
Koffeehaus Avatar asked Jan 28 '26 01:01

Koffeehaus


1 Answers

By virtue of sending along your .git folder, you've already sent your entire repository. This means, if they're truly wanted to, they could extract your history from that alone.

This doesn't mean that they can publish any of the changes or pull anything else down. GitHub would still require them to have the necessary credentials for the repository.

like image 67
Makoto Avatar answered Jan 29 '26 17:01

Makoto