"git push -u origin master" error (email privacy restrictions)

Under “Project: Your First Rails Application”, step 2.3 you need to run the command “git push -u origin master”.
I did so and got these 2 messages at the end:
! [remote rejected] master -> master (push declined due to email privacy restrictions)
error: failed to push some refs to 'git@github.com:xOC97/my_first_rails_app.git’

After a few minutes I realized I need to go to Settings > Emails and uncheck "Keep my email addresses private " and ran the command again.
After that I was able to see in the repository all the files mentioned (refresh).

Saw multiple errors / difficulties with step 2.3, should add “Known Issues” section there in my opinion.