Skip to content

Instantly share code, notes, and snippets.

@viiftw
Forked from fernandoaleman/clone-git-repo.txt
Last active July 11, 2023 08:18
Show Gist options
  • Save viiftw/e3cd7d0d1b424957b54a36106dc4e9e0 to your computer and use it in GitHub Desktop.
Save viiftw/e3cd7d0d1b424957b54a36106dc4e9e0 to your computer and use it in GitHub Desktop.

Revisions

  1. @fernandoaleman fernandoaleman renamed this gist Jun 19, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @fernandoaleman fernandoaleman created this gist Jun 14, 2017.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # Clone repo
    git clone --mirror [email protected]/fernandoaleman/app.git app/.git

    # Change into app directory
    cd app

    # Update git config
    git config --unset core.bare

    # Checkout master branch
    git checkout master