Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在定义提交之前从 github 公共项目下载源代码。我想获得一个项目结构,但是通过提交来理解它会更容易。可以看到,但是想一步步下载测试。
发现: 如何从 GitHub 项目中获取某些提交
克隆存储库后,您可以git log查看主分支上所有提交的列表,然后git checkout <SHA1>移动到任何提交,其中<SHA1>行上的字符串是
git log
git checkout <SHA1>
<SHA1>
commit 04ff4a3216988821fa69e679d105346f179e9c7d