简体   繁体   中英

How to view code in a Github repository as of a specific release?

I would like to see what the code in a whole repository looks like of a specific release. As an example, I'd like to view the code for Apache Airflow as of version 1.10.6.

I can find the summary of the release here, but don't know how to get to the associated code as of this release: https://github.com/apache/airflow/releases/tag/1.10.6rc1

Maybe it's possible to do this locally even (although I don't think git itself has the concept of a "release")?

Does what I'm trying to do make sense?

The circled link should take you to that particular snapshot of the code.

https://github.com/apache/airflow/releases/tag/1.10.6rc1

Every GitHub release is associated with a git tag. The tag you are looking for can be seen in the release URL. For example, the URL in your question, https://github.com/apache/airflow/releases/tag/1.10.6rc1 , corresponds to the tag 1.10.6rc1 .

To checkout to a tag locally, all you need is:

git checkout <tag-name>

In the given example,

git checkout 1.10.6rc1

For more information, this thread discusses the difference between a git tag and a GitHub release. You can read more about git tags in the official documentation of git.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM