I am working on git master and sub branch. Master and subcode Branch.
Now I have done one change in subcode branch and commit(4 to 5 commits done) that changes and push over subcode branch.
Now I want to show only one commit in my subcode branch but currently its show me 5 commits.
I have used following command for rebase the commits.
git rebase -interactive HEAD~3
And then perform some edits like this.
pick 6336d7c Commit commit#1
pick 54e8a9b Commit commit#2
pick 39f1d2h Commit commit#3
git rebase --continue
But it still show me 5 commits. Is there any idea how can I squash and rebase all commit into one commit?