When working on a project I like to do git -a -m 'part' commits to commit partial implementations. These implementations are not working but it is useful to have them to be able to go back if in next step something messes up.
After doing it there are several commits on a branch on a local repo. When pushing this branch to remote repo with git push all commits are added.
So on a list of commits all the partial commits are seen.
But they are unnecessary on remote repo. They wont work and spam the remote repo.
I would like to have only the final commit (with all changes so far in partial commits) on remote repo in one commit.
How to acomplish it?