{"id":24044595,"url":"https://github.com/vinugawade/gitswap","last_synced_at":"2026-04-07T08:31:59.738Z","repository":{"id":270243368,"uuid":"909664126","full_name":"vinugawade/gitswap","owner":"vinugawade","description":"A lightweight CLI tool to easily manage and switch between multiple Git user profiles. Perfect for developers working on projects with different Git account.","archived":false,"fork":false,"pushed_at":"2024-12-29T17:18:24.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T04:15:11.108Z","etag":null,"topics":["bash","bats-core","cli","git","github","github-config","linux","macos","switch","test-automation","user-management","version-control"],"latest_commit_sha":null,"homepage":"https://github.com/vinugawade/gitswap","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinugawade.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-29T12:23:34.000Z","updated_at":"2025-01-29T05:15:06.000Z","dependencies_parsed_at":"2024-12-29T17:29:22.317Z","dependency_job_id":"5aacd327-8b9c-4efd-ad47-b215858b42a6","html_url":"https://github.com/vinugawade/gitswap","commit_stats":null,"previous_names":["vinugawade/gitswap"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vinugawade/gitswap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fgitswap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fgitswap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fgitswap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fgitswap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinugawade","download_url":"https://codeload.github.com/vinugawade/gitswap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinugawade%2Fgitswap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31506562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","bats-core","cli","git","github","github-config","linux","macos","switch","test-automation","user-management","version-control"],"created_at":"2025-01-08T23:32:24.422Z","updated_at":"2026-04-07T08:31:59.710Z","avatar_url":"https://github.com/vinugawade.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/vinaygawade"],"categories":[],"sub_categories":[],"readme":"# GitSwap - Manage Git Users Easily 🔄\n\n![Linux](https://img.shields.io/badge/Linux-white?style=flat-square\u0026logo=linux\u0026logoColor=black)\n![MacOS](https://img.shields.io/badge/MacOS-white?style=flat-square\u0026logo=apple\u0026logoColor=black)\n![Bash](https://img.shields.io/badge/Bash-white?style=flat-square\u0026logo=gnu-bash\u0026logoColor=black)\n\n![GitHub issues](https://img.shields.io/github/issues/vinugawade/gitswap?style=flat-square)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/vinugawade/gitswap?style=flat-square)\n![GitHub last commit](https://img.shields.io/github/last-commit/vinugawade/gitswap?style=flat-square)\n\nIf you work with multiple Git users and need an easy way to switch between them, `gitswap` is the script for you. It allows you to list, add, remove, and switch Git users quickly on **Linux**, **MacOS**, and **Windows**.\n\n---\n\n## Installation 🚀\n\n1. **Clone the Repository:**\n    - Clone the [gitswap](https://github.com/vinugawade/gitswap) repository to your local machine using the following command:\n\n    ```bash\n    git clone https://github.com/vinugawade/gitswap.git\n    ```\n\n2. **Move the Script to a Global Location:**\n    - Move the script to a global location on your system using the following command:\n\n    ```bash\n    sudo mv /location/of/gitswap /usr/local/bin\n    ```\n\n3. **Set Script Permissions:**\n    - Allow everyone to execute the script by choosing one of the following commands:\n\n    ```bash\n    sudo chmod +x /location/of/gitswap\n    ```\n\n    OR\n\n    ```bash\n    sudo chmod 0755 /location/of/gitswap\n    ```\n\n4. **Add to $PATH:**\n    - Add `/usr/local/bin` to your `$PATH`. If you use the Bash shell, execute the command:\n\n    ```bash\n    export PATH=$PATH:/usr/local/bin\n    ```\n\n    OR\n\n    ```bash\n    export PATH=$PATH:/location/of/gitswap\n    ```\n\n    This will set the variable name, potentially in a file like `~/.bash_profile`, `~/.bashrc`, or `~/.profile`. If you're unsure where to put it, `~/.bashrc` is a good choice.\n\n\u003e **You may need to restart your shell for this to take effect.**\n\n---\n\n## Script Options 🎛️\n\nThe `gitswap` script supports the following options:\n\n- `--switch, -s`: Switch to a new or existing Git user.\n- `--add, -a`: Add a new Git user to the list.\n- `--remove, -r`: Remove a Git user from the list.\n- `--show, -sh`: Display the current Git user configuration.\n\n---\n\n## Usage 🛠️\n\n- **Switch User:**\n  Switch to an existing Git user or add a new one if the user doesn't exist.\n\n  ```bash\n  gitswap \"John Doe\" \"john.doe@example.com\"\n  ```\n\n- **Add User:**\n  Add a new Git user to the saved list.\n\n  ```bash\n  gitswap --add  # Prompts to add a new Git user to the list\n  gitswap \"Jane Doe\" \"jane.doe@example.com\"  # Adds a new user if provided\n  ```\n\n- **Remove User:**\n  Remove a Git user from the saved list.\n\n  ```bash\n  gitswap --remove  # Prompts to choose a user to remove\n  ```\n\n- **Show Current User:**\n  Display the current Git user configuration.\n\n  ```bash\n  gitswap --show  # Displays the current Git user configuration\n  ```\n\n- **List Users:**\n  If no arguments or options are provided, `gitswap` will list all saved Git users.\n\n  ```bash\n  gitswap  # Lists all saved Git users\n  ```\n\n---\n\n## Features 🌟\n\n- **Switch Users:** Easily switch between multiple Git users.\n- **Add Users:** Add new Git users to the saved list.\n- **Remove Users:** Remove users from the saved list.\n- **Show Current User:** Quickly view the currently active Git user.\n- **Auto-Add:** If no users are saved, the current Git user is automatically added to the list.\n\n---\n\n## Maintainer 👨🏻‍💻\n\n\u003ca href=\"https://vinux.in\"\u003e\n  \u003cimg\n    src=\"https://api.daily.dev/devcards/c8457c6e687d407197d39cfaf513c57a.png?r=qqh\"\n    width=\"400\"\n    height=\"\"\n    alt=\"Vinay Gawade's Dev Card\"\n  /\u003e\n\u003c/a\u003e\n\nBuilt With 💙✨ By \u003ca href=\"https://github.com/vinugawade\"\u003eVinay Gawade\u003c/a\u003e.\n\n\u003ca href=\"https://www.linkedin.com/in/vinu-gawade\" target=\"_blank\"\u003e\n  \u003cimg\n    src=\"https://github.com/vinugawade/vinugawade/blob/main/assets/images/media/LinkedIn.png?raw=true\"\n    alt=\"LinkedIn Logo\"\n    width=\"150\"\n    height=\"\"\n  /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.buymeacoffee.com/vinaygawade\" target=\"_blank\"\u003e\n  \u003cimg\n    src=\"https://github.com/vinugawade/vinugawade/blob/main/assets/images/media/Bmc.png?raw=true\"\n    alt=\"Buy Me a Coffee Logo\"\n    width=\"150\"\n    height=\"\"\n  /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/VinuGawade\" target=\"_blank\"\u003e\n  \u003cimg\n    src=\"https://github.com/vinugawade/vinugawade/blob/main/assets/images/media/Twitter.png?raw=true\"\n    alt=\"Twitter Logo\"\n    width=\"150\"\n    height=\"\"\n  /\u003e\n\u003c/a\u003e\n\n---\n\n## License 🛂\n\n![LICENSE](https://img.shields.io/github/license/vinugawade/gitswap?style=flat-square)\n\nThis project is licensed under the [LICENSE](LICENSE) file associated with this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinugawade%2Fgitswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinugawade%2Fgitswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinugawade%2Fgitswap/lists"}