Yes, actually on the github side, I apparantly can switch off the "Block
command line pushes that expose my email" option. But, do I understand
correctly that "Git" is not equivalent to "GitHub"? I.e., one can use Git
without using "Github"?

Cheers,

Machiel


On Thu, Nov 14, 2019 at 4:46 PM Konstantin Khomoutov <kos...@bswap.ru>
wrote:

> On Thu, Nov 14, 2019 at 06:30:57AM -0800, Machiel Kolstein wrote:
> >
> > Thank you, that worked on one machine.
> > However, if I tried the same thing on a different machine (after cloning
> > the same repository), I get the following error after doing "git push":
> >
> > remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
> > remote: error: GH007: Your push would publish a private email address.
> > remote: You can make your email public or disable this protection by
> > visiting:
> > remote: http://github.com/settings/emails
> > To https://github.com/matxil/test_20191114.git
> >  ! [remote rejected] master -> master (push declined due to email
> privacy
> > restrictions)
> > error: failed to push some refs to
> > 'https://github.com/matxil/test_20191114.git'
> >
> > I can see how I making my email public would help (I am not sure I want
> to
> > do that) but why do I get this error on one machine but not on the other?
> > On the machine where it worked, I have git version 2.7.4
> > On the machine with the error: git version 2.17.1
>
> First, this problem has nothing to do with Git: those messages printed
> by Git which are prefixed with the string "remote: " are merely
> forwarded verbatim form the Git instance serving our call on the remote
> server (that is, at Github).
>
> Second, from [2], it appears that the Github's Git is checking each
> commit of those pushed to any remote repository to verify the e-mail
> adresses listed in them (and each commit contains at least the address
> of the commit author, and may contain more of them, but let's not
> diress) complies with certain privacy rules imposed by Github.
>
> The e-mail address of the commit author is typically picked by Git from
> its configuration local to the author's machine, and ostensibly that
> explains why you get different results on different machines: they have
> different Git e-mails configured for your user.
>
> Actually I have no idea how so solve this (I do not use Github) but [2]
> appears to explain all that stuff and provide a solution.
>
> 2.
> https://github.community/t5/How-to-use-Git-and-GitHub/push-declined-due-to-email-privacy-restrictions/td-p/7660
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/33TNRwkQwHc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/git-users/20191114154627.5well6j2w43zj3wh%40carbon
> .
>


-- 
Avís - Aviso - Legal Notice - (LOPD) - http://legal.ifae.es

-- 
Avís -
Aviso - Legal Notice - (LOPD) - http://legal.ifae.es 
<http://legal.ifae.es/>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CAAwdGkRmj%2BL8OeOuQanSrTHT%2BmcMO%2BSMwFnbmWyememSSGtRDg%40mail.gmail.com.

Reply via email to