.gitignore
something in the .gitignore
file that shouldn’t be there. For example, the .idea
folder in which configs of known IDE from JetBrains lie. It is part of your work environment and is not related to the project and the repository. If several people work on a project and each of them adds configs of their environment to .gitignore, then it will turn into an unreadable trash bin..git/info/exclude
. This file is not committed and remains only in the local repository.~/.gitconfig
. The above example folder .idea, which is created for each project is just right here. Create a .gitexcludes file and execute: git config --global core.excludesfile ~/.gitexcludes
~/.gitconfig
: [core] excludesfile = ~/.gitexcludes
~/.gitconfig
you should not see the specified files / folders in the list of Untracked files..git/info/exclude
file (without the s
at the end), and in the second we use the excludeSfile
option (c s
in the middle). Do not lose time due to possible typos.Source: https://habr.com/ru/post/202696/
All Articles