Hey there folks!  I'm new here, so please forgive me if this is an already 
answered question.

I have a repo to which I am about to add some files.

In this repo, I have the following hierarchy:

README.md
package.json
src
src/things1
src/things.ts
src/.eslintrc.json
src/thing1.js
src/things1/.gitignore
src/things1/things2
src/things1/things2/test.js
src/things1/things2/.gitignore
src/things1/things2/things3
src/things1/things2/test2.js
src/things1/things2/things3/test3.js

Within src/things1/things2/.gitignore I have the following rule:

/test2.js

*but*, within src/things1/.gitignore, I have the following rule:

things2/.gitignore

Using 

git status --untracked-files --porcelain

I see in the results that src/things1/things2/.gitignore is *not* included 
in the list, which agrees with what I expected to see.

However, I *also* do not see src/things1/things2/test2.js which is *not* 
what I expected.

Somehow, the *rules* from src/things1/things2/.gitignore have been applied 
even though this file will not be checked in.

How can this be??

Should not the rules in src/things1/things2/.gitignore have been *ignored*, 
since it's not going to be checked in?

Please advise.

Best Regards,
Peter

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/7ae973d7-07d4-4063-9b93-36bea4e9b470n%40googlegroups.com.

Reply via email to