- 🔖 Git-Switch
- Generate SSH key for account 1
- Rename SSH Key for account 1:
mv ~/.ssh/id_ed25519.pub ~/.ssh/id_ed25519_account1.pub mv ~/.ssh/id_ed25519 ~/.ssh/id_ed25519_account1
- Generate SSH key for account 2
- Rename SSH Key for account 2:
mv ~/.ssh/id_ed25519.pub ~/.ssh/id_ed25519_account2.pub mv ~/.ssh/id_ed25519 ~/.ssh/id_ed25519_account2
wget https://raw.githubusercontent.com/PhilipMello/git-switch/main/gswitch && chmod +x gswitch
OR
wget https://raw.githubusercontent.com/PhilipMello/git-switch/main/gswitch && chmod +x gswitch && sudo mv gswitch /usr/bin/
RUN:
./gswitch
Manual:
./gswitch -h
To run in Pipeline:
./gswitch --account1 OR ./giswitch --account2
wget https://github.com/PhilipMello/scripts/blob/main/gswitch.ps1
RUN:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser && ./gswitch.ps1