How to check whether the username and password can access the git repository · gitpython-developers/GitPython · Discussion #1959
Repository navigation
How to check whether the username and password can access the git repository #1959
Unanswered BrentHuang asked this question in Q&A How to check whether the username and password can access the git repository #1959 BrentHuang Aug 22, 2024 · 4 comments · 1 reply Return to top Discussion optionsBrentHuang Aug 22, 2024
|
How to use gitpython to check whether the configured username and password can access the git repository? I just wanted to test the connectivity. |
Replies: 4 comments 1 reply
Comment options
Byron
Aug 22, 2024
Maintainer
|
You can do that with |
BrentHuang
Aug 23, 2024
Author
|
|
BrentHuang
Aug 26, 2024
Author
|
After I verified it, neither way works. The first way, I randomly change the username, password and repo_url, all display 'Access granted' |
BrentHuang
Aug 26, 2024
Author
|
origin.ls() |
This discussion was converted from issue #1958 on August 22, 2024 17:02.