4 ms·
This is nothing github specific. It will work with any git repository. Author is just a text attached to commit. Anybody can set it to anything. You don't even
by mmozeiko 8y ago
This is nothing github specific. It will work with any git repository. Author is just a text attached to commit. Anybody can set it to anything.
You don't even need to edit ~/.gitconfig file. Just set GIT_AUTHOR_NAME / GIT_AUTHOR_EMAIL / GIT_AUTHOR_DATE env variables to anything you want. See https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables https://git-scm.com/book/en/v2/Git-Internals-Environment-Var... for more variables.
- infogulch 8y agoI found this out when I was migrating code from hg in google code (now archived) to github. The source commits didn't have valid email addresses so they didn't work very well with git and github, so I just rewrote them to something else. There's no special checks that a commit came from the owner of an email address, and there's no way to prove it did/didn't. Take commit metadata with a grain of salt.