Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github | why when i push to specific branch does not recorded in my contributions

I've create a project with many branches in a private repo, and i am currently working with specific branch called Mp6-The-Three-Cup-Shuffle

i pushed many times my commits into the branch but none of them was recorded in my contributions graph.

i already removed everything inside the folder and then re-create the packages again, however the folder and the remote still the same, i didn't need to use git checkout Mp6-The-Three-Cup-Shuffle. would that effect?

I've checked my username and my email and they already configured.

enter image description here

also i can see my commits have been pushed and the changes are already in the github

enter image description here

but none of that was recorded like in the contribution image explains,

enter image description here

any suggestions can help explaining why this doesn't work? and how can i make it works?

NOTE: i am pushing everything from IntelliJ

like image 687
Wael Azar Avatar asked Mar 31 '18 09:03

Wael Azar


2 Answers

GitHub is counting only contributions to the default and gh-pages branches.

Here's a quote from GitHub:

Commits will appear on your contributions graph if they meet all of the following conditions:

  • The email address used for the commits is associated with your GitHub account.
  • The commits were made in a standalone repository, not a fork. The commits were made:
  • In the repository's default branch (usually master)
  • In the gh-pages branch (for repositories with Project Pages sites)

Keep in mind that when working with private repos, you have to allow GitHub to show your private contributions:

enter image description here

However, contributions graph will not state which pricate repos are you working on:

enter image description here

Cheers.

like image 92
Mladen Ilić Avatar answered Sep 27 '22 21:09

Mladen Ilić


I believe that if you merge your branch into the master or default branch then it will populate on the graph for those commit pushes.

like image 20
rabbitwerks Avatar answered Sep 27 '22 21:09

rabbitwerks