I have forked the
I made certain commits in my fork but now I want to discard them. I added the remote upstream branch (master branch by the
interleave author), fetched it and rebased to
But now the magit status shows the below:
Local: master ~/.emacs.d/elisp/interleave/ Remote: master @ origin (http://email@example.com/kaushalmodi/interleave) Head: 5a9e4ce Refine docs Tag: v0.4.0 (8 ahead) Unpulled commits: 3b836ef Merge branch 'master' of http://github.com/kaushalmodi/interleave a297270 Merge org sorting fix from upstream 7a855c3 Fix the org-sort-entries issue 57b68fd Merge branch 'master' of http://github.com/kaushalmodi/interleave 39b872a Merge org sorting fix from upstream 88857ea Fix the org-sort-entries issue 9e53d4b Merge org sorting fix from upstream 50939fa Fix the org-sort-entries issue
The above shows my recursive failed attempts to do a clean rebase.
How do I get rid of those Unpulled commits so that the fork master commit hash matches with the original master commit hash?
I have already tried the
git reset --hard <upstream master commit hash> method as suggested in this SO thread but that did not help; I simply want to get rid of all the unpulled commits so that I can do
c c in