在分支上执行git commit时,出现关于sed的以下错误。
$ git commit -am "test"
sed: -e expression #1, char 12: unknown option to `s'
该错误似乎是针对单个分支的。我尝试了其他存储库,以查看本地安装的git是否存在问题,但一切正常。尝试创建一个新分支并在那里提交也可以,但是以某种方式在该分支git中无法提交。有什么办法可以解决此问题,还是需要创建一个新分支?
答案 0 :(得分:2)
我认为您应该检查Traceback (most recent call last):
File "test001.py", line 26, in
ok = tracker.init(frame,bbox)
cv2.error: OpenCV(4.1.2) /io/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 95588562276 bytes in function 'OutOfMemoryError'
目录,以查看是否有任何特定的挂钩被触发。
一种可以验证此方法的方法是使用.git/hooks/
运行git commit
,以便绕过钩子。如果可行,那么您需要修复钩子。