I'm a new Git/GitHub user developing on a Windows 10 machine and I've been having lots of trouble pushing my code to my remote repo. A lot of the trouble seems to stem from checking the "Keep my email addresses private" and "Block command line pushes that expose my email" checkboxes in GitHub.
Is there any way I can push my code when both boxes are checked? So far, the only way I've found to get a successful push to my public repo is by unchecking the "Block command line pushes that expose my email" checkbox and to establish my remote as follows:
git remote add origin https://[USERID]:[PASSWORD]@github.com/[USERID]/[Project].git
I also set my email to the surrogate value in my local repo via:
git config --global user.email [8-digit-code]+[USERID]@users.noreply.github.com
Isn't the whole idea of this surrogate ID to enable me to push THAT, which hides my real email from people watching my traffic or looking at my repo, while allowing GitHub to store something that it can map to my real email address for its own purposes?
Can someone enlighten me on how I can keep both checkboxes checked and still push successfully?