我经常发现自己希望从GitHub存储库中提交一个补丁文件。有什么办法可以通过GitHub的web实现这一点,并获得类似git格式补丁的输出吗?我希望能够在不克隆存储库的情况下做到这一点,比如GitLab在查看提交时如何使用->电子邮件修补程序。
发布于 2021-10-21 21:39:51
在提交URL的末尾添加.patch (或.diff):
https://github.com/torvalds/linux/commit/1ffaddd029c867d134a1dde39f540dcc8c52e274.patch
另见:https://stackoverflow.com/a/21903890
https://webapps.stackexchange.com/questions/159696
相似问题