Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

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

Solved! Go to Solution.

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"?

1 Reply
Solution
Commander Lvl 2
Message 2 of 2

Re: Difference between "updated_at" and "pushed_at" in repositories list respons

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!