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.

Revisions

  1. luonghuycuong revised this gist Jul 24, 2015. No changes.
  2. luonghuycuong renamed this gist Jul 24, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. luonghuycuong revised this gist Aug 1, 2014. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion git-cheat.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    Dropbox vs Git

    ```git
    $ cd ~/Dropbox/Git
    $ git init --bare mytestrepo.git
    @@ -9,4 +11,5 @@ $ git init
    $ git remote add origin ~/Dropbox/Git/mytestrepo.git
    $ git push -u origin master
    $ git clone ~/Dropbox/Git/mytestrepo.git testrepo2
    $ git clone ~/Dropbox/Git/mytestrepo.git testrepo2
    ```
  4. luonghuycuong created this gist Aug 1, 2014.
    12 changes: 12 additions & 0 deletions git-cheat.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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