$ git clone ssh://git@git.postgresql.org/postgresql.git Cloning into 'postgresql'... Permission denied on repository for user gurjeet fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
IIRC, cloning and fetching using git://git.postgresql.org/git/postgresql.git URL worked at least a few months ago (I have a repo from back then where I used the git:// protocol instead of https).
The docs page mentioned in the first command needs to be fixed for sure.