Skip to content

Instantly share code, notes, and snippets.

@andreisoriga
Last active December 28, 2015 07:25
Show Gist options
  • Select an option

  • Save andreisoriga/4575368 to your computer and use it in GitHub Desktop.

Select an option

Save andreisoriga/4575368 to your computer and use it in GitHub Desktop.
Create Dropbox Git Repo
Create Dropbox Git Repo
$ cd ~/Dropbox
$ mkdir -p repos/your-repo-name
$ git init –-bare repos/your-repo-name
Initialized empty Git repository in /Users/xxxxxx/Dropbox/repos/your-repo-name/
$ cd ~/ProjectFolder
$ git init .
Initialized empty Git repository in /Users/xxxxx/ProjectFolder/
$ git add .
$ git commit –am "Initial commit"
$ git remote add origin /Users/xxxxx/Dropbox/repos/your-repo-name/
$ git push origin master
$ cd ~/Projects
$ git clone -o origin /Users/xxxxx/Dropbox/repos/your-repo-name/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment