user1796624
user1796624

Reputation: 4007

sending git project by email git security

Would sending a entire project to someone by email along with the .git folder exposes security issues? For example can it happen that the receiver uses this to access by ssh or https other projects from the senders GitHub account. The project is created in Intelij, is it possible that some Intelij files expose a security problem concerning git hub credentials?

Upvotes: 0

Views: 54

Answers (1)

max630
max630

Reputation: 9258

It should not, but there could be exceptions here and there:

  • if you added url like http://user:password@site/git/.. to remotes
  • if your credential helper stores the data inside .git folder (I have no idea if there is some which do)
  • if you have ever staged a file with secret information - even not committed, those could be found with fsck
  • whatever I forgot about

It is really better to send a bundle as suggsested in comment

Upvotes: 2

Related Questions