Created
October 16, 2014 06:29
-
-
Save walm/7556087d029c7195b3da to your computer and use it in GitHub Desktop.
Dropbox git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# taken from 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment