git添加.给我总线错误(核心已转储) [英] Git add . Gives me Bus error (core dumped)

查看:165
本文介绍了git添加.给我总线错误(核心已转储)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ubuntu并尝试将我的代码放在github上,但是当我尝试使用"git add"时.命令,出现错误"Bus error(core dumped)".

I am using ubuntu and trying to put my code on github but when I tried using the "git add ." command , I got an error "Bus error (core dumped)".

joannah@joannah-Inspiron-N5040:~/Macerdo$ git init
Initialized empty Git repository in /home/joannah/Macerdo/.git/
joannah@joannah-Inspiron-N5040:~/Macerdo$ git add .
Bus error (core dumped)
joannah@joannah-Inspiron-N5040:~/Macerdo$ 

我将不胜感激.

推荐答案

这是我解决此问题的方法,假设您仍然可以运行 git diff :

This is how I solved this problem, assuming you can still run git diff:

  1. 生成差异补丁
  2. 删除存储库
  3. 再次克隆仓库
  4. 应用补丁

git diff --patch > /tmp/patch.diff
cd ..
rm -rf my_repo
git clone <my_repo>
cd my_repo
patch -p1 /tmp/patch.diff

这篇关于git添加.给我总线错误(核心已转储)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆