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
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.
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.
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.
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.
"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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With