Skip to content

Commit eee4f71

Browse files
vaindilsubatoi
andauthored
Add warning about line ending conversion (#56429)
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com>
1 parent 5681735 commit eee4f71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/repositories/working-with-files/managing-files/adding-a-file-to-a-repository.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ Your repository may be secured by push protection. With push protection, {% data
4141

4242
{% endif %}
4343

44+
> [!WARNING]
45+
> Use Git to push files to your repository if you need to apply the logic in your `.gitattributes` file. For example, automatic conversion of line endings. Uploading a file through the {% data variables.product.github %} web interface will ignore `.gitattributes`.
46+
4447
{% data reusables.repositories.navigate-to-repo %}
4548
1. Above the list of files, select the **Add file** dropdown menu and click **Upload files**. Alternatively, you can drag and drop files into your browser.
4649

0 commit comments

Comments
 (0)