Let's say I have following commits
cccc[recent]
bbbb
aaaa
Now I have bugs in cccc
and I have rolled back to aaaa
by
git reset --hard aaaa
and I have worked here,this all happened in bugs
branch
Now when I try to push the cmmits to the bugs
branch it is telling
! [rejected] bugs -> bugs (non-fast-forward)
error: failed to push some refs to 'my url'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
I want to push my changes and remove the bbbb
and 'cccc` commits.
how to do this?