{"id":15050950,"url":"https://github.com/osmn-byhn/git-switch-account","last_synced_at":"2026-01-02T07:07:13.280Z","repository":{"id":252921846,"uuid":"841144575","full_name":"osmn-byhn/git-switch-account","owner":"osmn-byhn","description":"Git Switcher Account via shell code ","archived":false,"fork":false,"pushed_at":"2024-09-21T06:24:40.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T21:51:26.396Z","etag":null,"topics":["debian","debian-packages","docs","git","github","github-account-switcher","linux","linux-shell","project-completed","shell","shell-script"],"latest_commit_sha":null,"homepage":"https://switcher-github.osmanbeyhan.com/","language":"HTML","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/osmn-byhn.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-08-11T19:11:22.000Z","updated_at":"2024-11-14T18:49:35.000Z","dependencies_parsed_at":"2024-11-19T18:42:48.828Z","dependency_job_id":null,"html_url":"https://github.com/osmn-byhn/git-switch-account","commit_stats":null,"previous_names":["osmn-byhn/git-switch-account"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmn-byhn%2Fgit-switch-account","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmn-byhn%2Fgit-switch-account/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmn-byhn%2Fgit-switch-account/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmn-byhn%2Fgit-switch-account/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osmn-byhn","download_url":"https://codeload.github.com/osmn-byhn/git-switch-account/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243511214,"owners_count":20302525,"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":["debian","debian-packages","docs","git","github","github-account-switcher","linux","linux-shell","project-completed","shell","shell-script"],"created_at":"2024-09-24T21:29:51.414Z","updated_at":"2026-01-02T07:07:13.250Z","avatar_url":"https://github.com/osmn-byhn.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"```markdown\n# Switch GitHub Account\n\n`switcher-github.sh` is a tool that allows you to quickly switch between GitHub accounts, add new accounts, delete existing ones, and update account information.\n\n## Features\n\n- Easily switch between accounts by setting the GitHub username and email address.\n- Add new GitHub accounts.\n- Delete or update existing accounts.\n- Accounts are stored in a configuration file located in your home directory.\n\n## Installation\n\n### 1. Install as a Debian Package\n\nA `.deb` package is available for this tool, making it easy to use on Debian-based systems.\n\n1. Download and install the package:\n\n    ```sh\n    sudo dpkg -i switch-github-account-1.0.deb\n    ```\n\n2. Start using the script by running:\n\n    ```sh\n    switcher-github.sh\n    ```\n\n### 2. Manual Installation\n\nAlternatively, you can install the script manually:\n\n1. Move the script to a suitable directory:\n\n    ```sh\n    cp switcher-github.sh /usr/local/bin/switcher-github.sh\n    chmod +x /usr/local/bin/switcher-github.sh\n    ```\n\n2. Run the script from the terminal:\n\n    ```sh\n    switcher-github.sh\n    ```\n\n## Usage\n\nWhen you run the script, you'll be prompted with the following options:\n\n1. **Switch GitHub account:** Allows you to switch between existing accounts.\n2. **Add a new GitHub account:** Allows you to add a new account with a username and email.\n3. **Delete a GitHub account:** Deletes one of the existing accounts.\n4. **Update a GitHub account:** Updates the username or email of an existing account.\n\nThe script stores account information in a `.github_accounts` file in your home directory.\n\n## Configuration File\n\nThe script stores usernames and email addresses in the `$HOME/.github_accounts` file. The format of the file is as follows:\n\n```sh\nACCOUNT1_NAME=\"username1\"\nACCOUNT1_EMAIL=\"email1@example.com\"\nACCOUNT2_NAME=\"username2\"\nACCOUNT2_EMAIL=\"email2@example.com\"\n...\n```\n\n## Building the Package\n\nIf you want to create a Debian package for this script:\n\n1. Create the necessary directory structure:\n\n    ```sh\n    mkdir -p switch-github-account-1.0/usr/local/bin\n    ```\n\n2. Copy the script to the appropriate directory:\n\n    ```sh\n    cp switcher-github.sh switch-github-account-1.0/usr/local/bin/\n    chmod +x switch-github-account-1.0/usr/local/bin/switcher-github.sh\n    ```\n\n3. Create a `DEBIAN` directory and add a `control` file:\n\n    ```sh\n    mkdir switch-github-account-1.0/DEBIAN\n    ```\n\n    Content of the `control` file:\n\n    ```plaintext\n    Package: switch-github-account\n    Version: 1.0\n    Section: utils\n    Priority: optional\n    Architecture: all\n    Depends: bash\n    Maintainer: Your Name \u003cyour.email@example.com\u003e\n    Description: A simple tool to switch GitHub accounts using a configuration file.\n    ```\n\n4. Build the Debian package:\n\n    ```sh\n    dpkg-deb --build switch-github-account-1.0\n    ```\n\n5. Install the package:\n\n    ```sh\n    sudo dpkg -i switch-github-account-1.0.deb\n    ```\n\n## Contributing\n\nWe welcome contributions! If you have any suggestions or issues, please open an [issue](https://github.com/osmn-byhn/git-switch-account/issues) or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more details.\n```\n\nThis README.md file provides instructions on how to use the `switcher-github.sh` script, install it as a Debian package, and contribute to the project. It's now written in English for broader accessibility.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmn-byhn%2Fgit-switch-account","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosmn-byhn%2Fgit-switch-account","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmn-byhn%2Fgit-switch-account/lists"}