Skip to content

Instantly share code, notes, and snippets.

@walm
Created October 16, 2014 06:29
Show Gist options
  • Save walm/7556087d029c7195b3da to your computer and use it in GitHub Desktop.
Save walm/7556087d029c7195b3da to your computer and use it in GitHub Desktop.
Dropbox git
# 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