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 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
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐