Maven release plugin & jenkins & git error: “HEAD is not a symbolic ref”

When using the Maven Release Plugin with git and jenkins I got the error

during the prepare goal. Fortunately their is an easy solution: Continue reading Maven release plugin & jenkins & git error: “HEAD is not a symbolic ref”