I have 4 commits that I have committed to github. I would like to squash them into 1 commit.
I have tried the following command: git rebase -i HEAD~4
This however gives me a large list of commits in addition to my 4. In other words, the list includes commits that are not mine. The list looks something like:
pick some other commit
pick my commit 1
pick some other commit
pick some other commit
pick my commit 2
pick my commit 3
pick some other commit
pick my commit 4
How do I squash only my 4 commits?