Skip to content

Latest commit

 

History

History
executable file
·
80 lines (68 loc) · 1.81 KB

README.md

File metadata and controls

executable file
·
80 lines (68 loc) · 1.81 KB

🔧 Git-Switch

📝 About

Git-Switch - 2 Github Accounts on the same linux user

📚 Index


🔧 Git-Switch

For Linux 🐧

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

For Windows 🪟

wget https://github.com/PhilipMello/scripts/blob/main/gswitch.ps1

RUN:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser && ./gswitch.ps1

🔧 Switch Github Account


🔧 Generate SSH Key


🔧 Test Github SSH connection


🔧 Set Github account


🔧 Fix file permissions