The moment I start up my sourceTree, I get this error. How to resolve it without damaging my current project files?
Hi Ralph,
If the problem is with the index as the staging area for commits (i.e. .git/index
), you can simply remove the index (make a backup copy if you want), and then restore index to version in the last commit. On SourceTree shell run:
On OSX/Linux:
rm -f .git/index
git reset
On Windows:
del .git\index
git reset
(The reset
command above is the same as git reset --mixed HEAD
)
Cheers,
Renato Rudnicki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
git reset
error: inflate: data stream error (invalid code lengths set)
error: unable to unpack 64e00659b39bc2ec92b15903426745a9ca0e7469 header
error: inflate: data stream error (invalid code lengths set)
fatal: loose object 64e00659b39bc2ec92b15903426745a9ca0e7469 (stored in .git/objects/64/e00659b39bc2ec92b15903426745a9ca0e7469) is corrupt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Technically it did work and got me past that error.
However, it now shows a ton of stuff that I didn't change nor do I want to commit. When I just try to stash everything to get back to where I was it tells me "You do not have the initial commit yet". This reset resets more than I realized it would and caused different issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Im getting an errorcode 128, "ref/heads ... does not point to a valid object!"
Could it be its looking for a remote tree which has been deleted? I noticed the branch i was in has been merged already. I tried a git reset, didnt solve it.
The issue im having is that my local list of branches is completely empty now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please Help Me I Am getting this error on every next day. And I Have To Take Re-Clone My Project Every Time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The fix did NOT work for me. Any other suggestions?
When I try it, the git reset command gets "fatal: unterminated line in .git/packed-refs"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Works for me. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It also worked for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I restarted my windows system and then opened the source tree. It is automatically resolved !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get this all the time.
I almost hate it already!
Steps to reproduce are simple.
Just create a new branch, commit something, then switch to develop, merge your branch to develop and delete it. And observe the bug.
The only way to fix is to delete the wholerepo fromsourcetreeand add it again.
Can the issue be fixed? Please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I deleted my project (root folder) and created it again. It was the fastest and simplest way in my case.
Save all you changes, before you delete you project!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.. It worked.. Sorry for the late reply
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ralph, glad to hear that :) If you don't mind, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.