S
S
Stanislav2015-09-22 01:51:04
git
Stanislav, 2015-09-22 01:51:04

Why doesn't a .gitignore file work from a user's home directory on Windows?

The git config (part of it) looks like this:

[core]
  excludesfile = %USERPROFILE%/.gitignore
  autocrlf = input
  safecrlf = true

Everything is readable from here, and even if you change the slash, for example, in the address after the excludesfile, it starts to swear that the address is a fig. But at the same time, everything listed in the file is ignored, as it were. It is listed there for example:
.gitignore
.idea/
webstat/
front/content/images/
front/content/downloads/
front/view/images/
front/view/fonts/

Tried already this way and that - does not want to ignore what is listed here. But if the same file is put in the turnip root, then it is read with a bang! What could be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Serebryakov, 2015-10-01
@VoltSilver

Good afternoon, Stanislav!
I didn't work with git on Windows, but I use it very actively on Linux. If the question is still relevant, let's try to figure it out. I didn't really understand the problem. What is a turnip root and what is a user's home directory?
The .gitignor file must be in a directory that git watches for files. The same files can be placed in nested directories (for more flexible ignoring settings).
Perhaps Windows has specific rules for how git works. If so, I think we can find them and sort them out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question