Last active
December 28, 2015 07:25
-
-
Save andreisoriga/4575368 to your computer and use it in GitHub Desktop.
Create Dropbox Git Repo
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
| 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