I have a local copy of a repository that not longer have any remote associated to it. I\'m trying to push this repo into a new remote however everytime I get this message: <
Just Quit the applcation with which you accessing git and restart . Worked for me for xcode-iOS.
I have my git repo in a directory which is also in the OneDrive folder on my computer. If you use OneDrive on another machine, push from the repo on that computer and then pull/push from your own machine again.
I had this problem. Restarting my computer actually fixed it so please try it first before doing anything else. Or maybe I just got lucky but worth a shot!
To actually fix the problem and not lose any data (provided that that tree is the only missing object, which I doubt) you could try this: