windows - error: cannot open .git/FETCH_HEAD: Invalid argument -
i'm using git (from github windows distro) , trying pull repo , following error:
d:\code\dopey-weaver [master]> git fetch error: cannot open .git/fetch_head: invalid argument d:\code\dopey-weaver [master]> git fetch --verbose error: cannot open .git/fetch_head: invalid argument
this isn't "permission denied" of many other questions, seems i'm special snowflake... can open .git/fetch_head
, looks fine(?):
010779f14f5bdf1d2d806a0ce0ac4c5e50314186 branch 'master' of https://github.com/nicktimko/dopey-weaver
i think have conflict what's on remote should pulling/merging, can't fetch start... error message on push little long (is equivalent of hg
saying "this create multiple heads" in not many words?)
d:\code\dopey-weaver [master]> git push https://github.com/nicktimko/dopey-weaver.git ! [rejected] master -> master (fetch first) error: failed push refs 'https://github.com/nicktimko/dopey-weaver.git' hint: updates rejected because remote contains work hint: not have locally. caused repository pushing hint: same ref. may want first integrate remote changes hint: (e.g., 'git pull ...') before pushing again. hint: see 'note fast-forwards' in 'git push --help' details.
the problem appeared because volume (an exfat drive) dirty, read-only, , needed run through chkdsk
. so, solve:
- launch powershell/cmd in elevated mode (easy way being right-click on short-cut in start menu , pick "run administrator")
- run
chkdsk
on desired volume, e.g.chkdsk d: /x
(/x
forces dismount)- if you're having problem on primary partition (
c:
), you'll havechkdsk
@ startup...somehow.
- if you're having problem on primary partition (
Comments
Post a Comment