Mirror site is read only www.netnr.com
netnr/ git-clear-history.sh 2021-08-28 11:54
git 彻底清理历史,仅保留最新一份,慎重操作
cat .git/config  # note <github-uri>
rm -rf .git
git init
git branch -M main # 修改分支,可设置默认分支为 main:  git config --global init.defaultBranch main
git add .
git commit -m "Initial commit"
git remote add origin git@github.com:netnr/proxy.git # 改成自己对应的仓库
git push -u --force origin main