Skip to content

Instantly share code, notes, and snippets.

@vinodhkumarvm
Forked from mrdanadams/create_origin.sh
Created August 18, 2012 17:41
Show Gist options
  • Save vinodhkumarvm/3388671 to your computer and use it in GitHub Desktop.
Save vinodhkumarvm/3388671 to your computer and use it in GitHub Desktop.

Revisions

  1. @mrdanadams mrdanadams created this gist Nov 22, 2011.
    4 changes: 4 additions & 0 deletions create_origin.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $ cd git
    $ mkdir yourproject.git
    $ cd yourproject.git
    $ git --bare init
    4 changes: 4 additions & 0 deletions create_repo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $ cd yourproject
    $ git init
    $ git add *
    $ git commit
    2 changes: 2 additions & 0 deletions mkdir.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    $ cd ~/Dropbox
    $ mkdir git
    3 changes: 3 additions & 0 deletions push_origin.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    $ cd yourproject
    $ git remote add origin ~/Dropbox/git/yourproject.git
    $ git push origin master