克隆存储库以将 Python 与 Azure 函数一起使用

Clone the repository to use Python with Azure functions

试图找出我的 cmd 卡住的问题。

当我尝试运行下面的命令来启用虚拟环境时..

cd start
python -m venv .venv
source .venv/bin/activate

这是有效的,但是当我尝试克隆 repo 时,我的 cmd 卡住了,下面是这些命令,这些 repo 也是一个示例。

git clone https://github.com/Azure-Samples/functions-python-pytorch-tutorial.git
cd functions-python-pytorch-tutorial

这里我的任务是使用PyTorch。任何帮助将不胜感激。

谢谢。

谢谢Luis and shaILU。将您的建议作为答案发布,以帮助其他社区成员。

如果您正在使用 git-bash,您可以尝试 运行 以下命令:

git config --global credential.provider generic

如果您启用了 ssh,请尝试以下命令:

ssh -T git@github.com
git clone git@github.com:[user]/[repo]

可以参考, Pushing with Windows built-in OpenSSH hangs and Clone new Repository 'hangs' indefinitely