GIT fix: stderr: error: bad signature fatal: index file corrupt

来源:互联网 发布:c语言基本数据类型包括 编辑:程序博客网 时间:2024/05/21 06:51

An error shows in the Jenkins project's output, as:

hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.exe fetch -t origin +refs/heads/master:refs/remotes/origin/master" returned status code 128:stdout: stderr: error: bad signaturefatal: index file corrupt
it is failed to get the latest code from remote git repository.


Solution for this error:

  • remove the .git/index file
  • reset the index file, by git reset
0 0
原创粉丝点击