- π Git-Switch
- π Switch Github Account
- π Generate SSH Key
- π Test Github SSH connection
- π Set Github account
- π Fix file permissions
- π Switch Github Account
- 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
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