Multiple copies of git FETCH_HEAD files

%3CLINGO-SUB%20id%3D%22lingo-sub-2978499%22%20slang%3D%22en-US%22%3EMultiple%20copies%20of%20git%20FETCH_HEAD%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2978499%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EMy%20work%20folder%20structure%20is%20such%20that%20I%20end%20up%20having%20several%20git%20folders%20inside%20the%20ones%20that%20I%20sync%20using%20onedrive%20for%20business.%20When%20I%20do%20a%20git%20pull%2C%20onedrive%20ends%20up%20creating%20an%20extra%20copy%20of%20the%20FETCH_HEAD%20file%20with%20names%20FETCH_HEAD-computername-number.%20I've%20seen%20such%20posts%20on%20other%20forums%20as%20well%2C%20where%20the%20solution%20is%20%22Don't%20put%20git%20folders%20in%20onedrive%22.%20That's%20too%20sad.%20For%20instance%20I%20had%20no%20issues%20with%20this%20when%20using%20other%20cloud%20services.%3C%2FP%3E%3CP%3ESo%20what%20is%20the%20issue%20here%3F%20Is%20there%20a%20user-side%20fix%20I%20can%20use%3F%20(I%20am%20not%20an%20admin%20for%20my%20organisation).%20Or%20is%20this%20a%20bug%20that%20needs%20fixing%3F%3C%2FP%3E%3CP%3E--%20varunbhalerao%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2978499%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2988938%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20copies%20of%20git%20FETCH_HEAD%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2988938%22%20slang%3D%22en-US%22%3EI'm%20having%20the%20same%20issue%20and%20haven't%20been%20able%20to%20find%20a%20solution%20yet.%20It's%20quite%20annoying...%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi all,

My work folder structure is such that I end up having several git folders inside the ones that I sync using onedrive for business. When I do a git pull, onedrive ends up creating an extra copy of the FETCH_HEAD file with names FETCH_HEAD-computername-number. I've seen such posts on other forums as well, where the solution is "Don't put git folders in onedrive". That's too sad. For instance I had no issues with this when using other cloud services.

So what is the issue here? Is there a user-side fix I can use? (I am not an admin for my organisation). Or is this a bug that needs fixing?

-- varunbhalerao

1 Reply
I'm having the same issue and haven't been able to find a solution yet. It's quite annoying...