To learn the basics of Git, I set up a git repository for my wordpress page, where I try to code some small plugins etc. in PHP. I only have FTP acces to my webhost, so I use a tool called "git-ftp" to transfer my committed changes to my webserver. So far it works, but since I am used to test every small change in my code, I have to commit my changes all the time, and after an hour of coding I have 234 commited versions, which can't be the way git is meant to work.
How can I improve my setup? I actually don't want to "mirror" my wordpress installation on my local machine to test my modifications, but I can't see a way around this.
I'm new to Git, so maybe someone can tell me efficient ways to use git for webpage coding?