我做了 DevSweep:开发者磁盘告急时,先把能清理的东西找出来
做 macOS 开发久了,磁盘空间总会在某个早上突然变少。Xcode 的缓存、模拟器、项目里的 node_modules 和 target,再加上 Docker 镜像和 Build Cache,平时不太注意,攒起来就是几十 GB。真正麻烦的不是找不到几个大目录,而是不确定哪些能删,删了会不会影响手头的项目。
学习日志 LIUGUOFENG
做 macOS 开发久了,磁盘空间总会在某个早上突然变少。Xcode 的缓存、模拟器、项目里的 node_modules 和 target,再加上 Docker 镜像和 Build Cache,平时不太注意,攒起来就是几十 GB。真正麻烦的不是找不到几个大目录,而是不确定哪些能删,删了会不会影响手头的项目。
使用 SourceTree 向 码云 gitee.com (git.oschina.com) 推送代码时报错,报错信息如下
error: rpc failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
配置文件如下:
解决方法: 由 HTTP 提交修改为 SSH 提交 Continue reading OSChina Push error: rpc failed 失败 解决方法
我们在使用 git push 或 clone 或其他命令的时候,有时候会遇到这类问题,如图:

fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
出现这个问题是因为没有在 github 账号添加 SSH key Continue reading Git “Could not read from remote repository.Please make sure you have the correct access rights.”解决方案