Skip to content
Discussion options

You must be logged in to vote

You didn't miss it — there isn't one. The files panel only has i (Ignore or exclude file), and there's no view that lists ignored entries or lets you remove them. lazygit doesn't call git check-ignore anywhere in its codebase, so it has no notion of tracing where a rule came from either.

The good news is git answers both of your questions in one command. check-ignore -v prints the source file and line number for every match, and you can feed it the full ignored list:

git ls-files --others --ignored --exclude-standard | git check-ignore --stdin -v

You get output like:

.gitignore:3:*.log        debug.log
.git/info/exclude:5:notes.md      notes.md

so the .git/info/exclude entries you were …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AndrewStopchenko-SO
Comment options

@AndrewStopchenko-SO
Comment options

Answer selected by AndrewStopchenko-SO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants