如何清空 GitHub 仓库

1
2
3
4
5
6
7
8
9
# find . -name ".git" | xargs rm -Rf
mkdir init && cd init
echo "# init" >> README.md
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:weilining/CDN.git
git push -u origin main -f

这样远端仓库瞬间只有个README