I accidentally pushed to master
. I reverted this push via git revert shaToPreviousState
and pushed the original master state back. Then checked out
the sha commit with the accidentally pushed changes and switched via git switch -c new_stuff
with these changes to a new branch new_stuff
. I did some minor modifications, did an update
and pushed
these changes to branch new_stuff
. Now when I create an MR to merge new_stuff
with the master
, only the very recent changes (after creating new_stuff
) are displayed as a diff. However, what I am attempting to push includes those very changes I already reverted (before checking out the sha and creating new_stuff
). Why are they not displayed in the diff as well and how do I resolve this issue?
Current master
commit 8573277b289224d93993e374e070fa66da63d309 (HEAD -> master, origin/master, origin/HEAD)
Author: user.me <user.me@gmail.com>
Date: Mon Sep 14 22:37:39 2020 +0200
Revert "added loading some bin files"
This reverts commit 649a6f5f4dc31e6ba363fef7a9f77661f45254e9.
commit 649a6f5f4dc31e6ba363fef7a9f77661f45254e9
Author: user.me <user.me@gmail.com>
Date: Mon Sep 14 22:34:02 2020 +0200
added loading some bin files
new_stuff branch
commit 5ff6b90931685a32ae3e7bcde7b00db7440fac5e (HEAD -> new_stuff, origin/new_stuff)
Author: user.me <user.me@gmail.com>
Date: Mon Sep 14 22:57:33 2020 +0200
added a few docstrings
commit 649a6f5f4dc31e6ba363fef7a9f77661f45254e9
Author: user.me <user.me@gmail.com>
Date: Mon Sep 14 22:34:02 2020 +0200
added loading some bin files
So after pushing 5ff6b9
and creating an MR, there are no changes in the diff except for the ones added by 5ff6b9
. So, I am trying to understand how does git not see that 649a6f
+ 5ff6b9
come with a lot of new stuff but only shows a diff for 5ff6b9
:(