git-style-guide icon indicating copy to clipboard operation
git-style-guide copied to clipboard

Git rebase not working as expected (Label:Question)

Open ZeffK opened this issue 2 years ago • 0 comments

Hello have doubt regarding git rebase .

I have two branches one main and another my feature branch .

I made 3 commit on feature branch at 1pm 2pm and 3pm respectively, now I did the 4th commit on main-dev at 4pm , When I am on feature branch and running git rebase main , on top of 4th commit my 3 commits are there absolutely as expected , but here comes the problem as soon as I am running git push my feature branch is getting diverged and then getting merged into feature again .

Can you help here , why it is happening.

Below screenshot for reference

Image description

ZeffK avatar Sep 16 '22 20:09 ZeffK