Git常见错误问题

错误1

错误信息:

fatal: Not a git repository (or any parent up to mount point /export)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)

解决的办法:

git init

错误2

错误信息:

early EOF fatal: index-pack failed

解决的办法:

First, turn off compression:
git config --global core.compression 0

Next, let's do a partial clone to truncate the amount of info coming down:
git clone --depth 1 

When that works, go into the new directory and retrieve the rest of the clone:
git fetch --unshallow 
or, alternately,
git fetch --depth=2147483647 URI

Now, do a regular pull:
git pull --all

你可能感兴趣的:(管理思辨)