GIT fix: stderr: error: bad signature fatal: index file corrupt
An error shows in the Jenkins job, 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 statu
·
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 signature fatal: index file corruptit 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
更多推荐
已为社区贡献2条内容
所有评论(0)