.gitignore ** rules not consistent with regular git syntax
See original GitHub issuefolder/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:
- Created a year ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
isomorphic-git
usesignore
(https://github.com/kaelzhang/node-ignore) to parse.gitignore
files and determine which files to ignore, so this is actually a bug inignore
.