Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why some commits are shown as committed "on GitHub"?

Tags:

I am just experimenting with GitHub. Why some commits are shown as "committed on GitHub a day ago" and others as "committed a day ago"?

For example here: https://github.com/apple/swift/commits/master

like image 529
Neuron Avatar asked Oct 20 '16 16:10

Neuron


People also ask

What does Committed mean in GitHub?

commit. A commit, or "revision", is an individual change to a file (or set of files). When you make a commit to save your work, Git creates a unique ID (a.k.a. the "SHA" or "hash") that allows you to keep record of the specific changes committed along with who made them and when.

Why is my commit not showing on GitHub?

Your local Git commit email isn't connected to your account Commits must be made with an email address that is connected to your account on GitHub.com, or the GitHub-provided noreply email address provided to you in your email settings, in order to appear on your contributions graph.

What is a committed file in git?

The "commit" command is used to save your changes to the local repository. Note that you have to explicitly tell Git which changes you want to include in a commit before running the "git commit" command. This means that a file won't be automatically included in the next commit just because it was changed.

Why is my commit associated with the wrong person?

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.


1 Answers

"Committed on GitHub" means that this commit was created by GitHub on behalf of that user. That happens when you accept merge request via UI. You literally ask GitHub to create a commit for you.

You can also edit any file via the GitHub's UI. See this edit icon:

enter image description here

Such edit will be marked as "Committed on GitHub" as well.

If you look at the commit details you'll find that it has two properties "Author" and "Committer". When they are different GitHub shows that in the UI.

like image 64
Anton Sizikov Avatar answered Oct 04 '22 13:10

Anton Sizikov