Reputation: 1215
Using Terminal I made a few commits being:
git push
Enter username: username
Enter password: password
When I do it like this, the commits don't add up to my contribution graph on GitHub (even tough they are in the repository). However, when I do:
git push
Enter username: email address
Enter password: password
they show up. Is there something I'm doing wrong or is this just how GitHub works?
I've already set up the git config --global user.email and git config --global username.
Upvotes: 0
Views: 82
Reputation: 30164
I think the problem is not the "authentication" part. github counts contributions based on the mails of the authors of the revisions. You could push stuff from 100 other developers on a project (because they are the authors) and they would get the contributions.
Upvotes: 2
Reputation: 1
You should read an SSH tutorial (so generate once your SSH keys) and set up some SSH key on github using https://github.com/settings/keys
You should not have to enter your user & password at every git push
(or any git
command involving remote access to the github servers)
See also this. So use e.g. git clone [email protected]:karinakozarova/Made2Make.git
to clone your Made2Make
github repository on your local computer
Upvotes: 1