Git repositories aren't really meant to be used that way. See this question:
Is it possible to host a bare Git repository using Dropbox, to share code?
It's safer to take Dropbox out of the equation and use a bare repo on one of your machines, or else use Github or one of its assorted competitors.