Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/to-ie/gitswitch
This script helps with users who have multiple GitHub profiles and require to switch between them on a regular basis.
https://github.com/to-ie/gitswitch
Last synced: 14 days ago
JSON representation
This script helps with users who have multiple GitHub profiles and require to switch between them on a regular basis.
- Host: GitHub
- URL: https://github.com/to-ie/gitswitch
- Owner: to-ie
- Created: 2023-06-16T15:58:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-16T18:04:51.000Z (over 1 year ago)
- Last Synced: 2024-08-01T16:55:42.341Z (3 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gitswitch
This script helps with users who have multiple GitHub profiles and require to switch between them on a regular basis.## Requirements and assumptions
This script is for Ubuntu (or other Linux distributions) users. We assume that you already have GitHub CLI installed (if not, check [this page](https://cli.github.com/manual/installation) out) and that you are using [Personal Access Tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) to connect to your GitHub account.Before installing Gitswitch, you might want to have the following info ready, for each account:
- A nickname for the account (ie: 'work')
- The GitHub username
- The email address linked to the account
- The personal access key for the GitHub account (generate one [here](https://github.com/settings/tokens))## Install the script
To install Gitswitch, follow the instructions below.Let's keep things clean. Head over to your Desktop:
```
cd ~/Desktop
```Clone this repository:
```
git clone https://github.com/to-ie/gitswitch
```and launch the setup:
```
bash ~/Desktop/gitswitch/switch.sh
```Follow the configuration instructions provided by the script.
Note: you will need some basic information about your accounts (check the pre-requisit section above).Once you have installed and configured Gitswitch, let's clean up after ourselves:
```
rm -r ~/Desktop/gitswitch
```## Usage
Once you have installed and configured Gitswitch, simply type `gitswitch` in your terminal. That's it! 👍