[docs] remove --recursive flag from readme (#150785)

Fixes #150745

See https://github.com/pytorch/pytorch/issues/150745#issuecomment-2784216663

Cloning with `--recursive` as shown in the docs prevents users from checking out commits from before NCCL was removed as a submodule.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/150785
Approved by: https://github.com/atalman
This commit is contained in:
Daniel Vega-Myhre
2025-04-09 02:07:48 +00:00
committed by PyTorch MergeBot
parent d9f47c75de
commit 5f18b7d877

View File

@ -221,7 +221,7 @@ Other potentially useful environment variables may be found in `setup.py`.
#### Get the PyTorch Source
```bash
git clone --recursive https://github.com/pytorch/pytorch
git clone https://github.com/pytorch/pytorch
cd pytorch
# if you are updating an existing checkout
git submodule sync