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
2 Replies
if i understood correctly, you had a branch, you created a new one, and you're seeing all the commits on that new branch?
No, I create new branch from main (master) and in this new branch all the last commit is include in my new branch. So we I push to GitHub, in my new branch, we can see the list of commit from other branch.