Check out example codes for "how to go back after rebase". It will help you in understanding the concepts better.

Code Example 1

$ git reflog

b710729 [email protected]{0}: rebase: some commit
5ad7c1c [email protected]{1}: rebase: another commit
deafcbf [email protected]{2}: checkout: moving from master to my-branch
...

$ git reset [email protected]{2} --hard

Learn ReactJs, React Native from akashmittal.com