I encountered this issue when cloning the repository via the HTTPS Git URL ( https://github.com/XXXXX/YYY.git ) . Switching to the SSH Git URL ( [email protected]:XXXXX/YYYY.git ) as I had SSH keys already configured) resolved the problem.