Does “git reset –hard HEAD~1” on main branch remove this commit from another branch’s history (when that branch is based off main)?
Let’s say I have a, b, c, d
commits on main
. I use "git checkout -b new-branch"
while on d
. On new-branch
I make commits e, f
.