How to view diff of a forked github project

后端 未结 4 1410
小鲜肉
小鲜肉 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条回答
  •  萌比男神i
    2020-12-13 04:54

    If you push a branch that tracks the "upstream" repo to your repository, then you can see the diff in github itself, too:

     git remote add mainRepo github_url
     git fetch mainRepo
     git branch main_repo_master mainRepo/master
     git push origin main_repo_master
    

    Then see it online like this:

    https://github.com/rdp/mplayer-svn/compare/master…main_repo_master

    ref: http://betterlogic.com/roger/2012/04/github-compare-commits

提交回复
热议问题