Why reverted commit won't show in new PR?

git, git-commit, git-revert, github, pull-request

Solution

For those of you wondering: All I had to do was merge from master to XYZ branch so I could get the latest commits then revert the commit that reverted my code. Then the files in that previously reverted commits showed up in the new PR.

Problem

Here's what's happening: - created branch XYZ from master - committed changes in branch XYZ - made PR of XYZ branch to master - PR got accepted and code merged into master - PR got reverted (it broke stuff) - made some commits in branch XYZ in order to fix what commit on item #2 had broken - went to Github.com and created new PR, but I only see the last commit and NOT the other commit that was made on item #2 I guess my question is: Why isn't the code committed in item #2 not showing up in my new PR? will the commit that got reverted also be included in this new PR even though I don't see it in the list of changed files? Thanks!

Original source