Skip to content

Instantly share code, notes, and snippets.

@seanbuscay
Created June 27, 2013 15:26
Show Gist options
  • Save seanbuscay/5877413 to your computer and use it in GitHub Desktop.
Save seanbuscay/5877413 to your computer and use it in GitHub Desktop.

Revisions

  1. seanbuscay created this gist Jun 27, 2013.
    8 changes: 8 additions & 0 deletions git_create_orphan.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    cd repository
    git checkout --orphan orphan_name
    git rm -rf .
    rm '.gitignore'
    echo "#Title of Readme" > README.md
    git add README.md
    git commit -a -m "Initial Commit"
    git push origin orphan_name