Skip to content

Instantly share code, notes, and snippets.

View igr's full-sized avatar
🌤️
👋

Igor Spasić igr

🌤️
👋
View GitHub Profile
@igr
igr / work-with-multiple-github-accounts.md
Created September 1, 2023 15:17 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent

Keybase proof

I hereby claim:

  • I am igr on github.
  • I am igors (https://keybase.io/igors) on keybase.
  • I have a public key ASCXuaooufyMCer3i5afxIjKQhhJJwZlNsWPUx1xXBt40go

To claim this, I am signing this object:

@igr
igr / install-startssl-certs.sh
Created November 10, 2016 21:11
Installs startssl CA certs into the global Java keystore
#!/bin/bash
# Downloads and installs the startssl CA certs into the global Java keystore
set -euf -o pipefail
# Check if JAVA_HOME is set
if [ "$JAVA_HOME" = "" ]
then
echo "ERROR: JAVA_HOME must be set."
exit 1