相关疑难解决方法(0)

macOS Mojave Update后,Git无法正常工作(xcrun:错误:无效的活动开发者路径(/ Library/Developer/CommandLineTools)

昨晚(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)

git macos terminal xcode command-line

1190
推荐指数
27
解决办法
35万
查看次数

Windows上的Git,"内存不足 - malloc失败"

遇到了存储库的问题,并尝试了几乎所有可能的配置设置,例如.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,但仍然返回相同的错误.

几乎放弃了,即将创建一个新的回购,但我想先问一下:)

windows git

66
推荐指数
3
解决办法
7万
查看次数

Git pull因错误的包头错误而失败

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)

任何想法如何成功拉?

git

26
推荐指数
2
解决办法
4万
查看次数

将大型提交推送到GitHub会导致致命的写入错误:错误的文件描述符

我正在使用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)

任何想法如何解决这个问题?

git https github

2
推荐指数
1
解决办法
6461
查看次数

标签 统计

git ×4

command-line ×1

github ×1

https ×1

macos ×1

terminal ×1

windows ×1

xcode ×1