I am beginner in using git versioning tool.
I would like to download repository state (files) at specified time (e.g. on 5.10.2013). How can I do that ?
On GitHub, you can see the commit history of a repository by: Navigating directly to the commits page of a repository. Clicking on a file, then clicking History, to get to the commit history for a specific file.
check(path[, options], callback) Will check the state of the git repository at the given path and call the callback . The callback will be called with two arguments: An optional error object and a result object. The result object contains the following properties: branch - The currently checked out branch.
The Commit status API allows external services to mark commits with an error , failure , pending , or success state, which is then reflected in pull requests involving those commits.
As of May 2019 (not sure when this was introduced), you can simply add the date in the following format - HEAD@{2019-04-29}
- in the place of the URL where the commit would usually belong.
Example: Here is a link to the react repo on a recent commit https://github.com/facebook/react/tree/95e06ac3d091b6746be80d13840884dc7894b01c
Replacing the commit hash with the date formatted as above https://github.com/facebook/react/tree/HEAD@{2019-04-29} will bring you to the React repo as it looked on April 29.
You can also compare commits based on time - see more info from Github's help docs here: https://help.github.com/en/articles/comparing-commits-across-time#comparisons-across-time
UPDATE NOV. 2021: As mentioned in the comments below, this seems to now have a limit on the amount of days you can go back to (roughly 134 days in my experience).
The referenced Github help article also seems to have removed any mention of comparisons across time.
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