Just because you are developing locally doesn't mean you wouldn't have a large number of commits over a long period of time when you do push it.
I don't know how you can build something non-trivial if you aren't doing commits every time you solve a problem. If you don't work this way, how do you step through commits for debugging etc, and how do you checkout a previous commit to figure out where something broke?