For example, I have 10 commits in my current branch, now I want to to turn last 4 commits into one commit... I have pushed all the commit to my remote branch... now can I make my last 4 commit message into new commit message?
I want to do it, coz, my last 4 commit message was meaningless...
I tried to like this:
git rebase -i HEAD~2
it fires me a message as I have successfully rebased but later, I try to push this, it says, nothing to commit...
Can anyone help me?