简体   繁体   中英

Access git files at specific commit/branch using PHP

Is there any chance to access/read files (for example documentation files) virtually at a specific commit/branch using PHP?

My goal is to create a doc page where you can easily switch the version of files to see what was changed (to non-tech people).

I don't think so. As far as I know, the only way to switch commits is with git or on github. However, you could have the different versions stored on the latest commit and have links to them, but that will use a lot of space.

Sorry if I am wrong, I am not an insane git expert.

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