.gitconfig. How to protect?

If you see the file .gitconfig, it contains the username and email address. I want to protect him from the user, since he can always mask his identity, since he is still user-configurable.

Ex, In my company directory, my name is as follows Gerald, Anthony (last name, first name).

What people make a mistake here, some users indicate their name below

  • Gerald
  • G. Anthony
  • GA
  • Anthony
  • Ageral
  • and etc.

This creates confusion because it does not contain reliable information.

Let me know how you people manage user identities.

+3
source share
4 answers

This is a social problem and must be solved by social means.

, - -, ( , - ).

+4

Git ( ), - Git, , gitolite,

: update.email-check.

Gitolite script, "author email" commit , email, .

" ", , , alos ;)

:

" D" " DVCS", , .
-, ( , .., ).
, .

PHB , QA/ . / , , , . , QA/tests , !

DVCS, , - - . "" , , gpg, . Gitolite , - ; . contrib/adc/who-push admin, , .

, , script

  • pander -, grokked * D * VCS
  • - PHB
+3

You can add a signed tag to the commit to provide some validation.

0
source

Protecting .gitconfig will not solve the problem, as the user can override these settings by setting GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL.

0
source

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


All Articles