How to check the validity of a remote git repository URL?

As seen in this issue, you can use git ls-remote to test your address.

If you need to debug the git calls set GIT_TRACE=1. eg:

env GIT_PROXY_COMMAND=myproxy.sh GIT_TRACE=1 git ls-remote https://...

git ls-remote” is the quickest way I know to test communications with a
remote repository without actually cloning it. Hence its utility as a test for this
issue.

You can see it used for detecting an address issue in “git ls-remote returns 128 on any repo”.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)