倒腾了一个 NTP 监控的工具 http://www.ntpok.com/ ——检测结果发送到 GitHub Pages。每隔十分钟就更新一次,数据量很小。后来突然卡住了,更新不了了。发现是“ commit ”记录太多,国内网络环境不行,卡死。
彻底删除所有“ commit ”记录:
https://github.com/ntpok/ntpok/blob/master/ntpok-update.sh (欢迎 star )
代码 11 行到 16 行。
原理:把“.git ”目录整个删除,然后再次发送到 GitHub。
效果:在 https://github.com/ntpok 看到“ commit ”统计次数已经超过一千次,但是在 https://github.com/ntpok/ntpok.github.io 总是只有一个“ commit ”。
彻底删除所有“ commit ”记录:
https://github.com/ntpok/ntpok/blob/master/ntpok-update.sh (欢迎 star )
代码 11 行到 16 行。
原理:把“.git ”目录整个删除,然后再次发送到 GitHub。
效果:在 https://github.com/ntpok 看到“ commit ”统计次数已经超过一千次,但是在 https://github.com/ntpok/ntpok.github.io 总是只有一个“ commit ”。