{"id":17309961,"url":"https://github.com/metafates/gign","last_synced_at":"2025-04-14T14:22:56.426Z","repository":{"id":44437614,"uuid":"512417608","full_name":"metafates/gign","owner":"metafates","description":"⚙️ A cute .gitignore generator","archived":false,"fork":false,"pushed_at":"2022-07-17T17:43:42.000Z","size":64,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T14:22:52.105Z","etag":null,"topics":["cli","gitignore","gitignore-generator","gitignore-templates","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/gign","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metafates.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}},"created_at":"2022-07-10T11:30:41.000Z","updated_at":"2025-01-05T16:56:09.000Z","dependencies_parsed_at":"2022-09-26T21:21:37.803Z","dependency_job_id":null,"html_url":"https://github.com/metafates/gign","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fgign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fgign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fgign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metafates%2Fgign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metafates","download_url":"https://codeload.github.com/metafates/gign/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248895029,"owners_count":21179171,"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":["cli","gitignore","gitignore-generator","gitignore-templates","rust"],"created_at":"2024-10-15T12:34:08.734Z","updated_at":"2025-04-14T14:22:56.384Z","avatar_url":"https://github.com/metafates.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eGign\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg width=\"200\" src=\"https://github.com/metafates/gign/blob/main/assets/logo.png\"\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n    A Gitignore Generator\n\u003c/h3\u003e\n\n## Table of Contents\n\n- [Examples](#examples)\n- [Install](#install)\n- [Custom templates](#custom-templates)\n- [Help](#help)\n\n## Examples\n\n```bash\n# This is how you going to use it probably most of the time\ngign rust linux -a # -a short for --append\n\n# It's smart!\n# This will expand to python, jetbrains and linux\ngign pyton jjetbrainz linus \u003e .gitignore\n\n# Append to the repository root-level .gitignore automatically\ngign --append haskell\n\n# Do not automatically resolve unknown templates\ngign --append --strict macos\n# error: template 'macos' not found, did you mean 'global:macOS'?\n\n# Ignore all javascript related templates\ngign $(gign list javascript) node \u003e .gitignore\n\n# Search for template with fzf and use it\ngign $(gign list | fzf) \u003e .gitignore\n``` \n\n\u003e see `gign list` to show all available templates\n\n## Install\n\nUsing [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)\n\n```\ncargo install gign\n```\n\n## Custom templates\n\nBy default, templates are taken from https://github.com/github/gitignore\n\nTo add custom template just create `[name].gitignore`\nfile inside `gign where` directory.\n\nFiles inside folders will be prefixed with the parent folder name (except for the root templates).\n\nFor example, if you have `custom.gitignore` file inside `extras/` folder,\nyou can use it like this:\n\n```bash\ngign --strict extras:custom\n\n# or\ngign extras:custom\n\n# or\ngign custom\n```\n\n| Location                       | Strict Name     |\n|--------------------------------|-----------------|\n| `custom.gitignore`             | `custom`        |\n| `extras/custom.gitignore`      | `extras:custom` |\n| `extras/misc/custom.gitignore` | `misc:custom`   |\n\n## Help\n\n```\nUSAGE:\n    gign [OPTIONS] [template]... [SUBCOMMAND]\n\nARGS:\n    \u003ctemplate\u003e...    The templates to ignore\n\nOPTIONS:\n    -a, --append     Append to the root-level .gitignore file\n    -h, --help       Print help information\n    -s, --strict     Do not automatically resolve unknown templates\n    -V, --version    Print version information\n\nSUBCOMMANDS:\n    help      Print this message or the help of the given subcommand(s)\n    list      List all available templates\n    update    Update the default templates database\n    where     Print the templates path\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafates%2Fgign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetafates%2Fgign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafates%2Fgign/lists"}