Why are some commits shown as perfect "on github"?

I'm just experimenting with GitHub. Why are some commits shown as “committed on GitHub a day ago” and others as “committed a day ago”?

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

+5
source share
1 answer

"Commit on GitHub" means that this commit was created by GitHub on behalf of this user. This happens when you accept a merge request through the user interface. You literally ask GitHub to create a commit for you.

You can also edit any file through the GitHub interface. See this edit icon:

enter image description here

Such editing will be marked as "Committed on GitHub".

If you look at the details of the commit, you will find that it has two properties : Author and Committer. When they differ from each other, GitHub shows what is in the user interface.

+4
source

Source: https://habr.com/ru/post/1258557/


All Articles