简体   繁体   中英

How do I find what commit version I have?

I know how to install a specific commit from git but how do I find what commit version I have? pip freeze | grep package pip freeze | grep package doesn't list the commit version and I didn't see anything in the docs for this.

It looks like this might not be possible: "pip's ability to discern where the install came from is limited after the fact using pip freeze." See this link: https://github.com/pypa/pip/issues/609

Discussion on SO: Pip freeze does not show repository paths for requirements file

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