I am new to git. Some time ago, I have set it up on my MacBook Pro and havent used it for months. Now I wonder how can I figure out following:
The gitignore you are using is the one in the closest parent directory to where your git repo is initialized. So if you have a file system like this:
root/ | .gitignore | user/ | .gitignore | dev/ | .gitignore | project/
project is the directory of your git repository then the .gitignore being used is the one in
dev as it is the closest parent to
To check what your global .gitignore is run
git config --get core.excludesfile.