Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Introduction to Git Managing Committed Files Removing Files

James Phelps
James Phelps
8,262 Points

git repo not working "fatal: bad object HEAD" - seen as a rare issue

I am unable to use the git repo and therefore am unable to complete this course - I have seen a similar issue within the comments section but the thread just ends with no answer!!!!

I took this course last night and was having issues even cd into another file after starting the workspace. What i ended up doing was simply watching the videos and then doing the quizzes it just sucked because i am a hands on learner

1 Answer

Hi James,

How far have you got into the course? Can you run git init again to reset the local repo? You might need to ditch some files too.

While I don't usually recommend Stack Overflow as it is a pretty hostile environment - there's a useful thread here that might help you out too.

Hope this helps.