remove commit from other branche

Hello, I create new branch from main (GitHub) in my terminal. But when I did git log, all last commit from main include in my branch. I did git reset —hard isn’t working. Any idea why it’s happened ? And any solution please ?
Honestly, 3 days ago, everything is ok it’s begin when I install GitHub dekstop in my laptop.
Thank you
Was this page helpful?