I've created a network drive for my locally hosted website, and I'm 
managing all my files directly on the network drive. And I'm using that 
network drive as a local git repo. So, if I make any changes to a file 
there, I'd also want to be able to push it my my remote git repo. But when 
I start to do that, its gives me so many errors. Sometimes, it fails to 
check the status, sometimes gives errors such as

1. "fatal: index file smaller than expected"
2. "fatal: Unable to create 
'Y:/demo.dotcms.com/demos/tstgit/.git/index.lock': File exists."
3. "error: update_ref failed for ref 'HEAD': cannot lock ref 'HEAD': Unable 
to create 'Y:/demo.dotcms.com/demos/tstgit/.git/refs/heads/master.lock': 
File exists."
4. "error: update_ref failed for ref 'refs/remotes/origin/master': cannot 
lock ref 'refs/remotes/origin/master': Unable to create 
Y:/demo.dotcms.com/demos/tstgit/.git/refs/remotes/origin/master.lock': File 
exists."

I've googled and followed every direction I could in:
1. http://codybonney.com/fixing-fatal-index-file-smaller-than-expected-error/
2. 
http://programertools.blogspot.com/2014/04/how-to-fix-fatal-index-file-smaller.html
3. http://vertis.io/2012/01/24/git-fatal-index-file-smaller-than-expected.html
4. https://jira.atlassian.com/browse/SRCTREE-2018

But I'm still getting these issues.
However, when I try to check status, stage, commit, push, everything seems 
to work fine when I do it from my local drive. But I get these errors only 
when working from network drive.
Please help.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to