git rm -rf *
git commit -m "Empty the repository"
git push
如果用上面的方法删除库中所有的文件后,出现:
Updates were rejected because the tip of your current branch is behind
可以这样解决:
git push -u origin master -f
git rm -rf *
git commit -m "Empty the repository"
git push
如果用上面的方法删除库中所有的文件后,出现:
Updates were rejected because the tip of your current branch is behind
可以这样解决:
git push -u origin master -f