I have some commits that I don\'t want in my project, but there\'s a commit based on them which I do want in it. This is my GitHub \"Network\" graph of the repository (ASCII
You can combine your commits by rebase and squashing the ones you dont need. May be you did not do squash and pick.
Refere this: http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html