This commit is contained in:
gregvanl 2022-07-12 21:52:04 -07:00
Родитель 51cc3ce337
Коммит cdca3df686
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -56,7 +56,7 @@ The two suggested workflows are:
1. Install [Git LFS](https://git-lfs.github.com/).
2. Run `git lfs install` to setup global git hooks. You only need to run this once per machine.
3. ssh auth: `git clone git@github.com:microsoft/vscode-docs.git`<br>https auth: `git clone https://github.com/microsoft/vscode-docs.git`
3. SSH auth: `git clone git@github.com:microsoft/vscode-docs.git`<br>HTTPS auth: `git clone https://github.com/microsoft/vscode-docs.git`
4. Now you can `git add` binary files and commit them. They'll be tracked in LFS.
#### Cloning without binary files
@ -67,11 +67,11 @@ You might want to clone the repo without the 1.6GB images. Here are the steps:
2. Run `git lfs install` to setup global git hooks. You only need to run this once per machine.
3. Clone the repo without binary files.
- macOS / Linux:
- ssh auth: `GIT_LFS_SKIP_SMUDGE=1 git clone git@github.com:microsoft/vscode-docs.git`
- https auth: `GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/microsoft/vscode-docs.git`
- SSH auth: `GIT_LFS_SKIP_SMUDGE=1 git clone git@github.com:microsoft/vscode-docs.git`
- HTTPS auth: `GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/microsoft/vscode-docs.git`
- Windows:
- ssh auth: `$env:GIT_LFS_SKIP_SMUDGE="1"; git clone git@github.com:microsoft/vscode-docs.git`
- https auth: `$env:GIT_LFS_SKIP_SMUDGE="1"; git clone https://github.com/microsoft/vscode-docs.git`
- SSH auth: `$env:GIT_LFS_SKIP_SMUDGE="1"; git clone git@github.com:microsoft/vscode-docs.git`
- HTTPS auth: `$env:GIT_LFS_SKIP_SMUDGE="1"; git clone https://github.com/microsoft/vscode-docs.git`
4. Now you can selectively checkout some binary files to work with. For example:
- `git lfs pull -I "docs/nodejs"` to only download images in `docs/nodejs`
- `git lfs pull -I "release-notes/images/1_4*/*"` to only download images in `release-notes/images/1_4*`