How to view diff of a forked github project

后端 未结 4 1421
小鲜肉
小鲜肉 2020-12-13 03:56

I have forked a project on github and need to have a set of changes I made since I forked, in diff format.

If you wonder - I\'ve forked Apache httpd and I\'m changin

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 04:39

    This is an old question, but I just found a very nice method to get a patch or diff file directly from Github.

    When you are on your fork, there is a "Compare" link. Using that you are getting to the compare view.

    Example

    https://github.com/luisgoncalves/xades4j/compare/master...beat2:master
    

    Now you can manually add either ".diff" or ".patch" to the end of this url, and you get the file directly in your browser.

    Example

    https://github.com/luisgoncalves/xades4j/compare/master...beat2:master.diff
    

    Source: https://github.com/blog/967-github-secrets

提交回复
热议问题