Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stuartleeks/gh-switch-user
An extension to make it easier to switch between GitHub accounts in the `gh` CLI
https://github.com/stuartleeks/gh-switch-user
gh-extension
Last synced: 14 days ago
JSON representation
An extension to make it easier to switch between GitHub accounts in the `gh` CLI
- Host: GitHub
- URL: https://github.com/stuartleeks/gh-switch-user
- Owner: stuartleeks
- License: other
- Created: 2023-06-22T13:55:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-22T13:59:10.000Z (over 1 year ago)
- Last Synced: 2024-11-06T21:14:52.797Z (2 months ago)
- Topics: gh-extension
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-switch-user
An extension to make it easier to switch between GitHub accounts in the `gh` CLI.
## Installation
```sh
# Install direct from GitHub
gh extension install stuartleeks/gh-switch-user# Clone and install
git clone https://github.com/stuartleeks/gh-switch-user.git ~/.gh-switch-user
cd ~/.gh-switch-user
gh extension install .
```## Usage
```sh
# Save the current user config
gh switch-user --save# Sign in with new user
gh auth login# Switch back to the saved user (change my-username to the username you originally saved)
gh switch-user my-username
```## Uninstall
```sh
gh extension remove gh-switch-user
```