昨晚(2018年11月)我更新到macOS Mojave,
今天早上我在MacBook pro的Command line中导航到我的工作代码库,
在repo中键入"git status"并收到错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Run Code Online (Sandbox Code Playgroud) 遇到了存储库的问题,并尝试了几乎所有可能的配置设置,例如.pack.WindowMemory等等
我相信有人已经检查了一个大文件到远程存储库,现在每次我尝试拉动或推送它时,GIT会尝试打包它并耗尽内存:
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 6279, done.
Compressing objects: 100% (6147/6147), done.
fatal: Out of memory, malloc failed (tried to allocate 1549040327 bytes)
error: failed to run repack
Run Code Online (Sandbox Code Playgroud)
尝试过各种选项的git gc&git repack,但仍然返回相同的错误.
几乎放弃了,即将创建一个新的回购,但我想先问一下:)
git pull失败,出现以下错误
remote: Counting objects: 146, done.
remote: fatal: unable to create thread: Resource temporarily unavailable
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
Run Code Online (Sandbox Code Playgroud)
任何想法如何成功拉?
我正在使用GitHub来管理我的存储库,并且在尝试推送大型提交(1.5 GB)时遇到以下错误.
error: pack-objects died of signal 9
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
fatal: write error: Bad file descriptor
Run Code Online (Sandbox Code Playgroud)
任何想法如何解决这个问题?