Precedence of Ignore Files

Ref: Ignore Files

What is the precedence order of the User > Global Ignore List, and .cursorignore and .githubignore (and .cursorignoreindexing).

Does a Global Ignore List entry precede local entries in .cursorignore and .githubignore or vice versa? Empirically, .cursorignore overrules .githubignore but how do they interact with User > Global Ignore List entries.

And further how does Hierarchical ignore work? Do lower level entries overrule higher entries or vice versa?