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$
I will appreciate any help.
This is how I solved this problem, assuming you can still run git diff
:
git diff --patch > /tmp/patch.diff
cd ..
rm -rf my_repo
git clone <my_repo>
cd my_repo
patch -p1 /tmp/patch.diff
For future reference .I solved this by creating a new folder and putting all my project files there and when I did a "git add ." and "git commit" it worked but I still do not know why the former failed to work. The good thing is at least I got a solution and moved on. That is most important. Thanks for the contributions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With