{"id":20806199,"url":"https://github.com/anhsirk0/gacp","last_synced_at":"2025-05-07T04:23:51.152Z","repository":{"id":191571486,"uuid":"669003899","full_name":"anhsirk0/gacp","owner":"anhsirk0","description":"git add, commit and push in one go.","archived":false,"fork":false,"pushed_at":"2024-04-13T13:53:51.000Z","size":128,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T04:11:12.343Z","etag":null,"topics":["git","perl"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anhsirk0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-21T05:50:15.000Z","updated_at":"2024-07-02T01:16:43.768Z","dependencies_parsed_at":"2024-04-13T15:14:17.151Z","dependency_job_id":"4da1b23d-a1e5-46b1-80a4-8b972bda13d8","html_url":"https://github.com/anhsirk0/gacp","commit_stats":{"total_commits":86,"total_committers":2,"mean_commits":43.0,"dds":"0.011627906976744207","last_synced_commit":"507800d1c798d441842d9536356d2bee486dc0f7"},"previous_names":["anhsirk0/gacp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhsirk0%2Fgacp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhsirk0%2Fgacp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhsirk0%2Fgacp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anhsirk0%2Fgacp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anhsirk0","download_url":"https://codeload.github.com/anhsirk0/gacp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252811325,"owners_count":21807925,"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":["git","perl"],"created_at":"2024-11-17T19:18:40.210Z","updated_at":"2025-05-07T04:23:51.132Z","avatar_url":"https://github.com/anhsirk0.png","language":"Perl","funding_links":[],"categories":["\u003ca name=\"git\"\u003e\u003c/a\u003eGit and accessories"],"sub_categories":[],"readme":"# gacp\ngit add, commit and push in one go.\n\n+ Git repo on Codeberg: \u003chttps://codeberg.org/anhsirk0/gacp\u003e\n  - Mirrors:\n    + GitHub: \u003chttps://github.com/anhsirk0/gacp\u003e\n\n## About\ngacp is a wrapper around `git` to make commiting and pushing files convenient.\n\u003e works only on unix-like systems (Linux, BSD, MacOS)\n\n## Screenshot\n![screenshot.png](https://codeberg.org/anhsirk0/gacp/raw/branch/main/screenshot.png)\n\n## Installation\nIts just a perl script\ndownload it make it executable and put somewhere in your $PATH\n\n#### with wget\n``` bash\nwget https://codeberg.org/anhsirk0/gacp/raw/branch/main/gacp.pl -O gacp\n```\n#### or with curl\n``` bash\ncurl https://codeberg.org/anhsirk0/gacp/raw/branch/main/gacp.pl --output gacp\n```\n#### making it executable\n```bash\nchmod +x gacp\n```\n#### copying it to somewhere in $PATH\n```bash\ncp gacp ~/.local/bin/\n```\nor \n```bash\nsudo cp gacp /usr/local/bin/    # root required\n```\n\n## Usage\n```text\nUSAGE:\n\tgacp [ARGS] [OPTIONS]\n\nOPTIONS:\n\th, --help \t\tPrint help information\n\tl, --list \t\tList new/modified/deleted files\n\td, --dry \t\tDry-run (show what will happen)\n\tr, --relative-paths \tEnable Relative paths\n\tni, --no-ignore \tDon't auto exclude files specified in gacp ignore file\n\tnp, --no-push \t\tNo push (Only add and commit)\n\tf, --files \u003cFILES\u003e\tFiles to add (git add) [default: -A]\n\te, --exclude \u003cEXCLUDE\u003e\tFiles to exclude (not to add)\n\nARGS:\n\t\u003cMESSAGE\u003e \t\tCommit message\nEXAMPLE:\n\tgacp \"First Commit\"\n\tgacp \"updated README\" -f README.md\n\tgacp \"Pushing all except new-file.pl\" -e new-file.pl\n```\n\n## Configurations\nTo change default git message add $GACP_DEFAULT_MESSAGE var to environment\n```shell\nexport GACP_DEFAULT_MESSAGE=\"My default git commit message\"\n```\n\n### Auto Exclude files via gacp exclude file\nTo add files to exclude automatically (like .gitignore), create `~/.config/gacp/gacp.exclude` file  \n\nExample:\n```text\n# Repo's absolute path           =  comma separated files/dirs\n/home/user/projects/some-project = src/environment.ts, new-dir, some-dir/new\n# any number of files can be added here\n```\nyou can provide `--no-ignore` or `-ni` flag if you want to add and commit these files\n\n## List \u0026 Completions\n`gacp` provides `--list`, `-l` flag, which will list new/modified/deleted files  \nThis output can be used as completions for `gacp`  \n```text\n$ gacp --list\ngacp.pl\nREADME.md\n```\n\nIf you are a fish user you can add completions like this  \nCreate a file `/$HOME/.config/fish/completions/gacp.fish` with following content\n```shell\ncomplete -f -c gacp -a \"(gacp --list)\"\n```\n\n## Examples\n\n```text\n$ gacp -dry\nAdded files:\n\tgacp.pl\t(new)\n```\n\n```text\n$ gacp \"First Commit\" -dry\nAdded files:\n\tgacp.pl\t(new)\n\nCommit Message:\n\tFirst Commit\n```\n\n```text\n$ gacp -f README.md -dry\nAdded files:\n\tREADME.md\t(new)\n```\n\n```text\n$ gacp \"Pushing all files except README\" -e README.md -dry\nAdded files:\n\tgacp.pl\t(modified)\n\nExcluded files:\n\tREADME.md\t(new)\n\nCommit Message:\n\tPushing all files except README\n```\n\n## Supported ways to add/exclude files\n```text\ngacp -f ../some-file.pl\n```\n```text\ngacp -f ../some-file.pl\n```\n```text\ngacp -f :/:src/some-file.pl\n```\n```text\ngacp -f ./some-file.pl\n```\n```text\ngacp -f some-file.pl\n```\n```text\ngacp -f ./dir/some-file.pl\n```\n```text\ngacp -f dir/some-file.pl\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanhsirk0%2Fgacp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanhsirk0%2Fgacp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanhsirk0%2Fgacp/lists"}