How to fix You are in 'detached HEAD' state. This is expected in CI/CD pipelines. in Git | DevErrors