{"id":22455835,"url":"https://github.com/theapache64/git-do-not-ignore","last_synced_at":"2025-06-19T20:39:31.298Z","repository":{"id":86799509,"uuid":"172527769","full_name":"theapache64/git-do-not-ignore","owner":"theapache64","description":"A web app to generate .gitignore rule to NOT to ignore a file  ","archived":false,"fork":false,"pushed_at":"2023-11-26T07:36:49.000Z","size":4086,"stargazers_count":17,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T11:51:33.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://theapache64.github.io/git-do-not-ignore/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theapache64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-02-25T15:05:04.000Z","updated_at":"2024-12-11T15:58:55.000Z","dependencies_parsed_at":"2023-03-07T11:46:14.706Z","dependency_job_id":null,"html_url":"https://github.com/theapache64/git-do-not-ignore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theapache64/git-do-not-ignore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theapache64%2Fgit-do-not-ignore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theapache64%2Fgit-do-not-ignore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theapache64%2Fgit-do-not-ignore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theapache64%2Fgit-do-not-ignore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theapache64","download_url":"https://codeload.github.com/theapache64/git-do-not-ignore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theapache64%2Fgit-do-not-ignore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260827111,"owners_count":23068905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-06T07:13:35.123Z","updated_at":"2025-06-19T20:39:26.288Z","avatar_url":"https://github.com/theapache64.png","language":"Kotlin","readme":"# git-do-not-ignore\nA web app to generate .gitignore rules to **not to ignore** a file\n\n### What?\n\nNormally `.gitignore` files are used to ignore files from `git` indexing. \nSometimes we have to *ignore all files except one or more files*, and writing rule for it is little bit hard.\n\nFor example, if we want to skip all files in a `git` project, but not `a.txt` which is located in `aDir/anotherDir/someOtherDir/aDir/bDir/cDir`.\nThen, our `.gitignore` will be something like this\n\n```\n# Skip all files\n*\n\n# But not `aDir/anotherDir/someOtherDir/aDir/bDir/cDir/a.txt`\n!aDir/\naDir/*\n!aDir/anotherDir/\naDir/anotherDir/*\n!aDir/anotherDir/someOtherDir/\naDir/anotherDir/someOtherDir/*\n!aDir/anotherDir/someOtherDir/aDir/\naDir/anotherDir/someOtherDir/aDir/*\n!aDir/anotherDir/someOtherDir/aDir/bDir/\naDir/anotherDir/someOtherDir/aDir/bDir/*\n!aDir/anotherDir/someOtherDir/aDir/bDir/cDir/\naDir/anotherDir/someOtherDir/aDir/bDir/cDir/*\n!aDir/anotherDir/someOtherDir/aDir/bDir/cDir/a.txt\n```\n\nThe above given `.gitignore` file will skip all dirs and files except `!aDir/anotherDir/someOtherDir/aDir/bDir/cDir/a.txt`\n\n## Web\n\nGoto [https://theapache64.github.io/git-do-not-ignore/](https://theapache64.github.io/git-do-not-ignore/) and simply paste your file path on the first input box\n\n## CLI\n\n### Usage\n\nDownload [git-do-not-ignore.jar](git-do-not-ignore.jar) , then execute below command\n\n```console\njava -jar /path/to/git-do-not-ignore.jar \"/path/of/the/file\"\n```\n\n### Example\n\n```console\njava -jar git-do-not-ignore.jar \"aDir/anotherDir/someOtherDir/aDir/bDir/cDir/a.txt\"\n```\n\n### Output\n\n```\n!aDir/\naDir/*\n!aDir/anotherDir/\naDir/anotherDir/*\n!aDir/anotherDir/someOtherDir/\naDir/anotherDir/someOtherDir/*\n!aDir/anotherDir/someOtherDir/aDir/\naDir/anotherDir/someOtherDir/aDir/*\n!aDir/anotherDir/someOtherDir/aDir/bDir/\naDir/anotherDir/someOtherDir/aDir/bDir/*\n!aDir/anotherDir/someOtherDir/aDir/bDir/cDir/\naDir/anotherDir/someOtherDir/aDir/bDir/cDir/*\n!aDir/anotherDir/someOtherDir/aDir/bDir/cDir/a.txt\n```\n\n### Author\n\ntheapache64\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheapache64%2Fgit-do-not-ignore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheapache64%2Fgit-do-not-ignore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheapache64%2Fgit-do-not-ignore/lists"}