After creating branch Y
from working branch X
, I deleted some files to reduce visual noise by not seeing those files around on the FS, while working on branch Y
. These files are being changed in branch X
.
here is the scenario:
A - B [origin/master]
\
C - D - G - H [origin/X]
\
E - F [Y]
Changes from branch Y
are also pushed to origin/Y
Already raised a PR request on branch Y
for review.
How to rewrite the commit history in origin/Y
to get a file back?