Does git return specific return error codes?

前端 未结 6 515
醉梦人生
醉梦人生 2020-12-13 22:52

Like merging errors, or rebase errors. Does it have a unique error code?

6条回答
  •  甜味超标
    2020-12-13 23:42

    Error 128, with no error message from git, could be a catch-all for "unexpected problem".

    I was getting this on operations that needed to modify files under .git (e.g. "git checkout -- myfile" to revert a modified file) by a different user. (In my case "chmod -R og+w .git" fixed it; naturally, don't do that unless you understand the security implications for your case!)

提交回复
热议问题