{"id":23070229,"url":"https://github.com/markbattistella/gitrc","last_synced_at":"2026-05-01T09:31:39.843Z","repository":{"id":84662593,"uuid":"385429932","full_name":"markbattistella/gitrc","owner":"markbattistella","description":"Easily change between `gitconfig` setups without destroying your old settings","archived":false,"fork":false,"pushed_at":"2021-07-14T20:18:43.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T08:43:50.138Z","etag":null,"topics":["git","gitconfig","github-config","rc"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/markbattistella.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"custom":["https://www.paypal.me/markbattistella/5AUD","https://www.paypal.me/markbattistella/10AUD","https://www.paypal.me/markbattistella/20AUD"]}},"created_at":"2021-07-13T01:08:01.000Z","updated_at":"2021-07-15T18:41:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a2a76cd-6ca4-4641-97cc-d0739a9beb05","html_url":"https://github.com/markbattistella/gitrc","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"142cdfb47dfd9776fb16528691ea2ed155af2004"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markbattistella/gitrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fgitrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fgitrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fgitrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fgitrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markbattistella","download_url":"https://codeload.github.com/markbattistella/gitrc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbattistella%2Fgitrc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","gitconfig","github-config","rc"],"created_at":"2024-12-16T06:25:22.088Z","updated_at":"2026-05-01T09:31:39.825Z","avatar_url":"https://github.com/markbattistella.png","language":"JavaScript","funding_links":["https://www.paypal.me/markbattistella/5AUD","https://www.paypal.me/markbattistella/10AUD","https://www.paypal.me/markbattistella/20AUD","https://www.paypal.me/markbattistella/6AUD","https://www.buymeacoffee.com/markbattistella"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# gitrc\n\n\u003csmall\u003e\u003cem\u003eeasily switch between `.gitconfig` files\u003c/em\u003e\u003c/small\u003e\n\n![Github2npm](https://github.com/markbattistella/gitrc/workflows/gh2npm/badge.svg?event=registry_package) ![npm (scoped)](https://img.shields.io/npm/v/@markbattistella/gitrc) ![GitHub](https://img.shields.io/github/license/markbattistella/gitrc)\n\n---\n\n[![](https://img.shields.io/badge/%20-@markbattistella-blue?logo=paypal\u0026style=for-the-badge)](https://www.paypal.me/markbattistella/6AUD) [![](https://img.shields.io/badge/%20-buymeacoffee-black?logo=buy-me-a-coffee\u0026style=for-the-badge)](https://www.buymeacoffee.com/markbattistella)\n\n\u003c/div\u003e\n\n---\n\n## Overview\n\nIf you (like me) need to travel between home and the office that have different network settings you'll know how annoying setting and unsetting config settings can be - especially if you try and push and it fails.\n\nIt works really great if one `.gitconfig` needs a proxy, and the other doesn't.\n\n\u003e Major credit to [@deoxxa/npmrc](https://github.com/deoxxa/npmrc) for inspiration and setting a blueprint\n\n## Installation\n\n1. Install the module from `npm`\n\n    ```sh\n    npm i @markbattistella/gitrc -g\n    ```\n\n## Usage\n\n```sh\n$ gitrc -h\n\nUsage:\n  gitrc               List all profiles\n  gitrc [name]        Switch to profile\n  gitrc -n [name]     Create a new profile\n  gitrc -d [name]     Delete the profile\n  gitrc -h            Display this screen\n```\n\n### Initialisation\n\nCalling `gitrc` without arguments creates an `~/.gitconfigs/` directory if it doesn't exist, and copies your current `~/.gitconfig` as the 'default' .gitconfig profile.\n\n### Create a new config file\n\n```sh\ngitrc -n configname\n```\n\nA blank config will be created where you can have custom settings for your `.gitconfig`\n\n```sh\ngit config --global user.name \"Mark Battistella\"\ngit config --global user.email markb@example.com\n```\n\nYou can then add whatever other configuration settings you need. Please [refer to the manual](https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration) for help.\n\n### List available config files\n\n```sh\nAvailable .gitconfig files:\n\n \u003e home\n   work-proxy\n```\n\n### Switch to a specific .gitconfig\n\n```sh\ngitrc work-proxy\nActivating .gitconfig 'work-proxy'\n```\n\n### Delete a specific .gitconfig\n\n```sh\ngitrc -d work-proxy\n\nDeleting .gitconfig file 'work-proxy'\nCurrent active config is being deleted.\nRemember to set a new one before use.\n```\n\n## Note For Windows Users\n\nYou may have to run `gitrc` in a shell (cmd, PowerShell, Git Bash, etc) with\nelevated (Administrative) privileges to get it to run.\n\n## License\n\nMIT - a copy is included with the source.\n\n## Contact\n\n- GitHub ([markbattistella](https://github.com/markbattistella))\n- Twitter ([@markbattistella](http://twitter.com/markbattistella))\n\n## Awesome People\n\nAgain I want to thank:\n\n- Conrad ([github](https://github.com/deoxxa/)) - *author of npmrc*\n\nAnd all the people that helped on that project:\n\n- Jaime \"the binary wizard\" Pillora ([github](https://github.com/jpillora))\n- Tim \"two hands\" Oxley ([github](https://github.com/timoxley))\n- Jakob \"fastest blur in the west\" Krigovsky ([github](https://github.com/SonicHedgehog))\n- Rod \"the destroyer\" Vagg ([github](https://github.com/rvagg))\n- Eugene \"ludicrous gibs\" Asiedu ([github](https://github.com/ngenerio))\n\n## Contributing\n\n1. Clone the repo:\n\n    `git clone https://github.com/markbattistella/gitrc.git`\n\n1. Create your feature branch:\n\n    `git checkout -b my-feature`\n\n1. Commit your changes:\n\n    `git commit -am 'Add some feature'`\n\n1. `Push` to the branch:\n\n    `git push origin my-new-feature`\n\n1. Submit the `pull` request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbattistella%2Fgitrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkbattistella%2Fgitrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbattistella%2Fgitrc/lists"}