Home > Enterprise >  How is the name formed when you commit to git if you specify other data and how safe is it?
How is the name formed when you commit to git if you specify other data and how safe is it?

Time:01-23

How is the name formed when you commit to git if you specify other data and how safe is it?

If I specify such data in the config in vs code, then we pass the commit with the name test

git config --global user.name "test" git config --global user.email "[email protected]"

git config --global user.name "test2" git config --global user.email "[email protected]"

if I specify the name and email of another user in git and use the pool, will he get access to my codes? I don't understand how the git security system works?

I was looking for an answer to this question in the git documentation and did not find it in the search

enter image description here такими данными то комит проходит с именем test2

CodePudding user response:

Git itself has no access restrictions. As you noticed, the committer is just a text field that anyone can write anything into.

If you need any access restrictions, this is up to the server hosting the git repository.

  • Related