Skip to content

Instantly share code, notes, and snippets.

@RhythmShahriar
Created June 26, 2019 09:27
Show Gist options
  • Save RhythmShahriar/ab3abbe0f902581cd79d4980989d3b10 to your computer and use it in GitHub Desktop.
Save RhythmShahriar/ab3abbe0f902581cd79d4980989d3b10 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment