On Dropbox folder that is server folder.
# mkdir project
# cd project
# git init --bare
Commit at project is local folder.
# cd ~/Sample
# git remote add origin ~/project
And then…
# git push origin master