Skip to content

Commit f03a143

Browse files
committed
Softened line ending statement
1 parent a8a822a commit f03a143

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

docs/remote/containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To get started, follow these steps:
3131

3232
2. Right-click on the Docker taskbar item and update **Settings / Preferences > Shared Drives / File Sharing** with any source code locations you want to open in a container. If you run into trouble, see [Docker Desktop for Windows tips](/docs/remote/troubleshooting.md#docker-desktop-for-windows-tips) on avoiding common problems with sharing.
3333

34-
3. **Windows**: Disable automatic line ending conversion for Git by using a Windows command prompt to run: `git config --global core.autocrlf false` (If left enabled, this setting can cause files that you have not edited to appear modified due to line ending differences.)
34+
3. **Windows**: Consider disabling automatic line ending conversion for Git on the **Windows side** by using a command prompt to run: `git config --global core.autocrlf false` If left enabled, this setting can cause files that you have not edited to appear modified due to line ending differences. See [tips and tricks](/docs/remote/troubleshooting.md#resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-filess) for details.
3535

3636
**Linux**:
3737

docs/remote/troubleshooting.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ Since Windows and Linux use different default line endings, you may see files th
276276
git config --global core.autocrlf false
277277
```
278278

279+
This will disable automated conversation. If you would prefer to still always upload Unix-style line endings (LF), you can use the `input` option instead.
280+
281+
```bash
282+
git config --global core.autocrlf input
283+
```
284+
279285
Next, you can prevent others from facing this issue regardless of their setting by adding or modifying a `.gitattributes` file in your repository. For example, this will force everything to be LF except for Windows batch files that require CRLF:
280286

281287
```yaml
@@ -536,6 +542,12 @@ Since Windows and Linux use different default line endings, you may see files th
536542
git config --global core.autocrlf false
537543
```
538544

545+
This will disable automated conversation. If you would prefer to still always upload Unix-style line endings (LF), you can use the `input` option instead.
546+
547+
```bash
548+
git config --global core.autocrlf input
549+
```
550+
539551
Next, you can prevent others from facing this issue regardless of their setting by adding or modifying a `.gitattributes` file in your repository. For example, this will force everything to be LF except for Windows batch files that require CRLF:
540552

541553
```yaml

docs/remote/wsl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To get started you need to:
3131

3232
3. Install the [Remote Development](https://aka.ms/vscode-remote/download/extension) extension pack.
3333

34-
4. Disable automatic line ending conversion for Git on the **Windows side** by using a command prompt to run: `git config --global core.autocrlf false` (If left enabled, this setting can cause files that you have not edited to appear modified due to line ending differences.)
34+
4. Consider disabling automatic line ending conversion for Git on the **Windows side** by using a command prompt to run: `git config --global core.autocrlf false` If left enabled, this setting can cause files that you have not edited to appear modified due to line ending differences. See [tips and tricks](/docs/remote/troubleshooting.md#resolving-git-line-ending-issues-in-wsl-resulting-in-many-modified-files) for details.
3535

3636
### Open a folder in WSL
3737

0 commit comments

Comments
 (0)