-- Remove the history from

rm -rf .git

-- recreate the repos from the current content only

git init
git add .
git commit -m "Initial commit"

-- push to the github remote repos ensuring you overwrite history

git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
git push -u --force origin master

来源: https://gist.github.com/stephenhardy/5470814

相关文章:

  • 2021-06-21
  • 2021-08-22
  • 2021-11-07
  • 2022-12-23
  • 2021-07-08
  • 2021-09-15
猜你喜欢
  • 2021-11-27
  • 2021-11-28
  • 2021-11-06
  • 2022-12-23
  • 2021-10-21
相关资源
相似解决方案