Github 错误添加 https 来源但它给了我错误的 --- 冗长
Github error add https origin but it gives me wrong ---verbose
我在以下代码中遇到 git 集线器问题。我正在使用 ubuntu linux os.I 添加 https 来源但它给了我 git://
git remote add origin https://github.com/PritpalSingh786/IV-View.git
git remote --verbose
origin git://github.com/PritpalSingh786/IV-View.git (fetch)
origin git://github.com/PritpalSingh786/IV-View.git (push)
I have also a push problem i.e.
git push -u origin main
fatal: remote error:
You can't push to git://github.com/PritpalSingh786/IV-View.git
Use https://github.com/PritpalSingh786/IV-View.git
Please help me to solve this error
大家好,我的 github 问题与以下代码有关。我正在使用 ubuntu linux os.I 添加 https 来源但它给了我 git://
首先检查存储库中 git config -l
的输出:
cd /path/to/repository
git config -l | grep -i insteadof
如果您看到任何 InsteadOf
指令,那就可以解释为什么您的 https URL 会自动被 git://
替换。
A git config --global --unset-all url."git://github.com/".insteadof
将删除这样的配置
我在以下代码中遇到 git 集线器问题。我正在使用 ubuntu linux os.I 添加 https 来源但它给了我 git://
git remote add origin https://github.com/PritpalSingh786/IV-View.git
git remote --verbose
origin git://github.com/PritpalSingh786/IV-View.git (fetch)
origin git://github.com/PritpalSingh786/IV-View.git (push)
I have also a push problem i.e.
git push -u origin main
fatal: remote error:
You can't push to git://github.com/PritpalSingh786/IV-View.git
Use https://github.com/PritpalSingh786/IV-View.git
Please help me to solve this error
大家好,我的 github 问题与以下代码有关。我正在使用 ubuntu linux os.I 添加 https 来源但它给了我 git://
首先检查存储库中 git config -l
的输出:
cd /path/to/repository
git config -l | grep -i insteadof
如果您看到任何 InsteadOf
指令,那就可以解释为什么您的 https URL 会自动被 git://
替换。
A git config --global --unset-all url."git://github.com/".insteadof
将删除这样的配置