Thursday, May 21, 2015

Local only GIT source control

http://stackoverflow.com/questions/1960799/using-git-and-dropbox-together-effectively

~/project $ git init 
~/project $ git add .
~/project $ git commit -m "first commit"
~/project $ cd ~/Dropbox/git

~/Dropbox/git $ git init --bare project.git
~/Dropbox/git $ cd ~/project

~/project $ git remote add origin ~/Dropbox/git/project.git
~/project $ git push -u origin master

No comments:

Post a Comment