Skip to content

Instantly share code, notes, and snippets.

@luonghuycuong
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save luonghuycuong/0cbe3f14a27fabf53fc5 to your computer and use it in GitHub Desktop.

Select an option

Save luonghuycuong/0cbe3f14a27fabf53fc5 to your computer and use it in GitHub Desktop.
Private Git

Dropbox vs Git

$ cd ~/Dropbox/Git
$ git init --bare mytestrepo.git

$ cd ~
$ mkdir testrepo
$ cd testrepo
$ git init
$ git remote add origin ~/Dropbox/Git/mytestrepo.git
$ git push -u origin master

$ git clone ~/Dropbox/Git/mytestrepo.git testrepo2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment