Step 1:
~/project $ git init
~/project $ git add .
~/project $ git commit -m "first commit"
~/project $ cd ~/Dropbox/git
Step 2:
~/Dropbox/git $ git init --bare project.git
~/Dropbox/git $ cd ~/project
Step 3:
~/project $ git remote add origin ~/Dropbox/git/project.git
~/project $ git push origin master
标签:origin,git,私有,cd,project,init,Dropbox
From: https://blog.51cto.com/u_2650279/6154710