Search code examples
pythongitazuregithubcmd

Clone the repository to use Python with Azure functions


Trying to figure out the issue with my cmd as it is getting stucked.

As I tried to run below commands to get the virtual env enabled..

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

This is working but when I try to clone the repo my cmd is getting stucked, below are those commands, also those repo is also a sample one.

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

Here my task is to use PyTorch. Any help would be appreciated.

Thanks.


Solution

  • Thank you Luis and shaILU. Posting your suggestion as an answer to help other community members.

    If you are using git-bash, you can try running following command:

    git config --global credential.provider generic
    

    If you have enabled ssh, then try following commands:

    ssh -T [email protected]
    
    git clone [email protected]:[user]/[repo]
    

    You can refer to git clone hangs on "Cloning into..." using GitBash, Pushing with Windows built-in OpenSSH hangs and Clone new Repository 'hangs' indefinitely