Home > Back-end >  Github Contributions do not show
Github Contributions do not show

Time:09-28

I push my commits by git bash (Windows11) everyday, but they are not show as contribution on my github.

I've read several artilces like this. I've checked my email address and it is already added in git.

I have no idea what is the problem, and I really hope my commits in the past days can show as conribution.

Hope anyone can help. Thank you very much!

My repository is https://github.com/frankychhoa/codeeveryday

CodePudding user response:

To push data using git bash follow the steps

open your project folder

right click and open gitbash

then follow the steps

git init
git status
git add .
git commit -m "uploading"

still you are in your local directory but wait before uploading check if you are connected to the remote reposetry or not

master/ main

git remote get-url origin
git remote get-url master

if you found not remote url then you can set it

git remote set-url origin <newurl>)

then follow the below steps to check you remote repostry is it main /orign

git push -u orign master
git push -u origin main 

CodePudding user response:

All your commits are made by [frankychhoa] <[[email protected]]> which is not normal syntax.

You probably just need to set your name and e-mail address correctly in your client (fix the actual name, I'm just guessing):

git config --global user.name "Franky Chhoa"
git config --global user.email "[email protected]"

Running git log in your repo shows:

commit c961e52fe6 (HEAD -> main, origin/main, origin/HEAD)
Author: [frankychhoa] <[[email protected]]>
Date:   Wed Sep 28 21:58:11 2022  0900

    2022.09.28

...

But it's supposed to look like:

commit c961e52fe6 (HEAD -> main, origin/main, origin/HEAD)
Author: Franky Chhoa <[email protected]>
Date:   Wed Sep 28 21:58:11 2022  0900

    2022.09.28

...
  • Related