mkdir /c/@project/HelloGit
cd /c/@project/HelloGit
git init
git add .
git commit -am 'Initial load'
mkdir c:/dropbox/repositories/vpub
git remote add origin c:/dropbox/repositories/vpub
git push origin master
cd c:/dropbox/repositories/vpub
git init --bare
# Dropbos is a free file-sharing and syncing utility that you can get from dropbox.com
# it will automatically sync files to all devices (computers, phones, ect) subscribed to a given folder.
# It works "great" as a Git remote repository.
cd /c/@project/HelloGit
git push origin master
转载于:https://www.cnblogs.com/joe-yang/archive/2012/04/03/2431263.html