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

本文介绍了一种常见的Jenkins在拉取Git仓库代码过程中遇到的错误:bad signature, fatal: index file corrupt。针对该问题,提供了解决方案:移除 .git/index 文件并使用 git reset 命令重置索引文件。
1818





