Article version: GitHub.com

Troubleshooting commits

Commit exists on GitHub but not in my local clone

Sometimes a commit will be viewable on GitHub, but will not exist in your local clone of the repository.

Why are my commits linked to the wrong user?

GitHub uses the email address in the commit header to link the commit to a GitHub user. If your commits are being linked to another user, or not linked to a user at all, you may need to change your local Git configuration settings, add an email address to your account email settings, or do both.

Why are my commits in the wrong order?

If you rewrite your commit history via git rebase or a force push, you may notice that your commit sequence is out of order when opening a pull request.

Ask a human

Can't find what you're looking for?

Contact us