Git. Gitignore
From AsIsWiki
(Difference between revisions)
(Created page with "<div style='max-width:700px;text-align:justify;'> Git == Исключение файла .DS_Store для всех проектов == Make a global .gitignore file: ...") |
|||
Line 5: | Line 5: | ||
== Исключение файла .DS_Store для всех проектов == | == Исключение файла .DS_Store для всех проектов == | ||
− | Make a global .gitignore file: | + | [https://stackoverflow.com/questions/18393498/gitignore-all-the-ds-store-files-in-every-folder-and-subfolder Источник] |
+ | |||
+ | |||
+ | 1. Make a global .gitignore file: | ||
echo .DS_Store >> ~/.gitignore_global | echo .DS_Store >> ~/.gitignore_global | ||
− | Tell git to use it for all repositories: | + | 2. Tell git to use it for all repositories: |
git config --global core.excludesfile ~/.gitignore_global | git config --global core.excludesfile ~/.gitignore_global |