Skip to content

Instantly share code, notes, and snippets.

View ZiaUrRehman786's full-sized avatar

Zia Ur Rehman ZiaUrRehman786

View GitHub Profile
@ZiaUrRehman786
ZiaUrRehman786 / gist:fdd2e510b3beeb86109a823c7b4f9cbb
Created March 4, 2023 05:31
cronjob-without-istio-sidecare
apiVersion: v1
kind: Namespace
metadata:
labels:
istio.io/rev: asm-managed
run: nginx
name: nginx
---
apiVersion: v1
kind: Pod

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.