Skip to content

Instantly share code, notes, and snippets.

@doozie-akshay
Created April 26, 2020 07:22
Show Gist options
  • Save doozie-akshay/043aefb57683ce4b3a81136fa29d3c9d to your computer and use it in GitHub Desktop.
Save doozie-akshay/043aefb57683ce4b3a81136fa29d3c9d to your computer and use it in GitHub Desktop.
-- Remove the git folder
rm -rf .git
-- init the repos from the current content only
git init
git add .
git commit -m "First commit"
-- push to the github remote repos with --force to overwrite history
git remote add origin git@github.com:<ACCOUNT>/<REPOS>.git
git push -u --force origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment