How can I configure Pkg to use specific git

I have tried Julia 1.7.0, the issue still preserves. I can add registered packages, though. However, I cannot add unregistered packages, and cannot registry add a private registry hosted as a private github repo.