question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.gitignore ** rules not consistent with regular git syntax

See original GitHub issue

folder/other-folder/**/**js does not ignore folder/other-folder/dir/main.js. Double asterisks should be interpreted here as two asterisks, which match anything - see https://git-scm.com/docs/gitignore#_pattern_format

I am using isogit in a plugin to the Obsidian note-taking app on Android. The issue came up there: https://github.com/denolehov/obsidian-git/issues/297

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mojavelinuxcommented, Oct 22, 2022

Thanks for pointing that out. It also looks it has been reported (or at least a variation of this case): https://github.com/kaelzhang/node-ignore/issues/57

1reaction
ar-nelsoncommented, Oct 21, 2022

isomorphic-git uses ignore (https://github.com/kaelzhang/node-ignore) to parse .gitignore files and determine which files to ignore, so this is actually a bug in ignore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gitignore Documentation - Git
A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the NOTES below...
Read more >
git - Gitignore not working - Stack Overflow
gitignore : First commit any outstanding code changes, and then, run this command: git rm -r --cached . This removes any changed files...
Read more >
How to Use a .gitignore File - Pluralsight
It lets Git know that it should ignore certain files and not track them. ... The easiest pattern is a literal file name,...
Read more >
.gitignore file - ignoring files in Git | Atlassian Git Tutorial
Git ignore patterns are used to exclude certain files in your working directory from your Git history. They can be local, global, or...
Read more >
Git Ignore - Javatpoint
There is no explicit git ignore command; instead, the .gitignore file must be edited and committed by hand when you have new files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found