Git troubleshooting

Team Feedback does not attribute my commits (i.e. the ones I made) to me

There are a number of possible causes for this problem.:

  1. You have not configured your development machine correctly. Every time you create a commit in your local repository, Git associates an email address with that commit. This email address is the one you configured when you started using Git on this machine. It can be an email specific to this repository, set with the command:
    $ git config user.email YOUR_EMAIL_ADDRESS
    or an email specific to your machine, set with the command:
    $ git config --global user.email YOUR_EMAIL_ADDRESS
    where YOUR_EMAIL_ADDRESS should be identical to the primary email address of your account on GitHub. GitHub uses this email address to associate a commit with one of its users.
  2. You have not linked your GitHub account in Team Feedback. While GitHub may be able to associate your commit with a userid, Team Feedback will not recognise that userid.
  3. You did link our GitHub account in Team Feedback, but authorisation for Team Feedback to access your GitHub account has expired. A typical symptom for this particular issue is that Team Feedback used to recognise your commits but stopped doing so. This may be because of something you did, or because of some setting of your GitHub account. To check whether your account is still linked, go to your Team Feedback profile page and navigate to Linked services. If the required GitHub service is not longer linked, relink.
  4. Team Feedback's authorisation to access the GitHub account of the owner of the team's repository has expired. If commits after a certain date before the end of the project do not appear in the repository data on Team Feedback, this is the most likely cause. In this situation, ask the owner of the team's repository to relink their GitHub account.

Some commits were made while git was not configured correctly. How do I address this?

If you have created commits that could not be attributed to you, or you believe this to be the case, you should start with diagnosing the problem. Navigate to the team's list of commits, and find commits that you made but could not be attribute. The list of commits will identify such commits and provide a login and/or email address associated with that commit that could not be associated with a team member.

If your login is not recognised, you can remedy the situation by ensuring that the correct GitHub account is linked with Team Feedback. Note that you are able to link only one account for each service: i.e. one GitHub.com account and one King's College London GitHub Enterprise account. If the commit comes with an unrecognised email address, you can associate that email address with your account. Navigate to  Account. Then, select  Profile. Scroll down to "Additional email addresses" and add the unclaimed email address to your account.

Beware that claiming an email address that is not yours or associated with other people's commits, with a view to falsely inflate your code contribution statistics on Team Feedback can be deemed to be misconduct and even cheating. This can lead to misconduct proceedings.