GitHub commits aren't recorded in the 'Your Contributions` calendar

前端 未结 27 1574
南笙
南笙 2021-01-29 21:59

I\'ve been making continuous commits to my GitHub repos from my linux shell and they show up nicely on the website just as they should. The only problem is that \"Y

27条回答
  •  Happy的楠姐
    2021-01-29 22:22

    so this usually happens due to a lot of factors, for which you must visit this GitHub help

    The most common mistakes I found were :

    1. Email not configured properly on local machine. (your laptop/pc).
    2. Forking.
    3. Not using default or gh-pages branch for commit.

    I personally had issue 1 recently, for which I went to my terminal/cmd/cli and configure my email address locally by running this command

    git config --global user.email yourname@email.address
    

    Once that's done, try running this config again like this:

    git config --global user.email
    

    You should be able to see:

    yourname@email.address
    

    If this was correct, you have successfully configured your local machine with your global public repo. Now your next commit will be credited towards your calendar.

提交回复
热议问题