why not use git stash? you are doing commits of stuff that you probably don't want