Skip to content

Instantly share code, notes, and snippets.

@RStankov
Created September 22, 2011 12:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RStankov/1234658 to your computer and use it in GitHub Desktop.
Save RStankov/1234658 to your computer and use it in GitHub Desktop.
Dropbox Git repo
~/project $ git init
~/project $ git add .
~/project $ git commit -m "first commit"
~/project $ cd ~/Dropbox/code/git
~/Dropbox/git $ mkdir project.git
~/Dropbox/git $ cd project.git
~/Dropbox/git $ git init --bare
~/Dropbox/git $ cd ~/project
~/project $ git remote add origin ~/Dropbox/git/project.git
~/project $ git push origin master
# cloning
$ git clone ~/Dropbox/git/project.git project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment