I am new to GitHub and am currently learning to work on a public repository. I have forked the repository and have two branches created (master and testing). I work on the testing branch.
Accidentally I changed two files of the remote repository that were not supposed to be changed and created a pull request. Of course, my request was discarded because of those changes and I was asked to revert the changes from those two files. I tried to revert the changes using many methods available on the internet and also some of my own. (like manual copy-paste from git), git revert and others.
Now, when I run git diff <testing> origin/master
, I do not see the two forbidden files. Does that mean there's no difference in them ?
Can someone explain to me how to check differences in particular files from remote repository ? And can someone also explain how to revert forbidden changes and create a new pull request.
Thanks alot in advance.