Error cloning private Github repo

Here was similar problems, I don’t know if them were solved or not: How to bypass username/password prompt when updating private packages

Workaround is to use git directly, like you have done.