Comments (5)
@ShawnTylerSchwartz git status
gives:
error: object file .git/objects/44/92309858f0267fb9dd34d5847c903f083f722a is empty
error: object file .git/objects/44/92309858f0267fb9dd34d5847c903f083f722a is empty
fatal: loose object 4492309858f0267fb9dd34d5847c903f083f722a (stored in .git/objects/44/92309858f0267fb9dd34d5847c903f083f722a) is corrupt
I ran everything else and it worked again! But it also uploaded a new repository onto Github, so I don't know if that's okay.
Thanks for your help!
from eeb-c177-w20.
@estmendoza two questions: first, are you inside of your Git repository's folder on your computer; and two, did you do git add -A
? Let me know.
from eeb-c177-w20.
@ShawnTylerSchwartz Yes, I'm in /home/eebc177student/Developer/repos/eeb-c177-homework/lab-exercises/week-one where the food-log.txt file is located. After updating my food log, git add -A
works fine but it only gives me the error after I write the commit line.
from eeb-c177-w20.
@estmendoza okay, so this issue is complicated to explain over this forum, but essentially this type of error occurs when the git repository files on the computer become corrupted (possibly through your battery dying while in the middle of a git operation or not properly shutting down your virtual machine and just quitting it).
The following steps are from this article (https://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty), and I have summarized and adapted them to hopefully fix your issues.
First, let's try the following "Git" way of doing this: Please follow these instructions exactly as described or more issues can arise..
- Make sure you are in the main part of your
eeb-c177-homework
git repo (i.e.,cd ~/Developer/repos/eeb-c177-homework
- Type
git status
and let me know here what it says exactly - Backup your .git files using the following command:
cp -a .git .git-old
find .git/objects/ -type f -empty | xargs rm
git fetch -p
git fsck --full
- Then do
git status
again and let me know here what is says now
This should hopefully fix the issues and allow you to commit, but if not, I would then suggest doing the following: manually make a backup your files from within the local git repository directory to another temporary folder, then delete the local eeb-c177-homework
directory off the computer and re-clone from GitHub and then manually paste back in the files that you backed up (I could help you with this if you'd need assistance)
from eeb-c177-w20.
@estmendoza I see what you're saying; that's the backup. We can clean it up on Monday in lab!
from eeb-c177-w20.
Related Issues (20)
- Jon - Lightning Talk HOT 13
- Alex Phu- Lightning Talk Presentation HOT 8
- Shreya-Lightening Talk Presentation HOT 15
- Karan Singh Lightning Presentation HOT 16
- Frida Perez - Lightning Talk Presentation HOT 10
- Linh Ngau Lightning Presentation HOT 7
- Omer Lavian Junco Lightning Talk HOT 13
- Deap Singh Bhandal Lightning Presentation HOT 14
- Steven Chau - Lightning Presentation HOT 13
- Alton Taing - Lightning Presentation HOT 7
- Gohar Mihranian- Lightning Presentation HOT 10
- Dylan Readel - Lightning Presentation HOT 10
- Whitney - Mapping Yellow Warbler Samples in R HOT 12
- Esteban Mendoza - Lightning Presentation HOT 12
- Hao Nguyen - Lightning Presentation HOT 6
- Jessica De Anda - Lightning Presentation HOT 18
- Moataz Basyouni - Lightning Presentation HOT 13
- Vanessa Ramos- Lightning Presentation HOT 12
- Responding to lightning presentation posts HOT 3
- Robert Reny's Lightning Presentation HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eeb-c177-w20.