Difference between "updated_at" and "pushed_at" in repositories list response

Hi, can I get more detailed info on what’s the difference between these two fields in 

GET /user/repos

...  
" **updated\_at**": "2019-04-16T14:18:39Z",  
" **pushed\_at**": "2019-04-16T14:18:38Z",  
...

How do I push to a repo without updating it as I’ve seen repositories with “updated_at” earlier than “pushed_at”?

Hi @docc46,

Welcome to the Github Community Forum!

Hi, can I get more detailed info on what’s the difference between these two fields in

pushed_at will be updated any time a commit is pushed to any of the repository’s branches.

updated_at will be updated any time the repository object is updated, e.g. when the description or the primary language of the repository is updated. The difference is that pushed_at represents the date and time of the last commit, whereas the updated_at represents the date and time of the last change the the repository. A change to the repository might be a commit, but it may also be other things, such as changing the description of the repo, creating wiki pages, etc. In other words, commits are a subset of updates, and the pushed_at timestamp will therefore either be the same as the updated_at timestamp, or it will be an earlier timestamp. (stackoverflow)

-Gabriele-

Mark helpfull posts with Accept as Solution to help other users locate important info. Don’t forget to give Kudos for great contents!

3 Likes