Skip to content

Instantly share code, notes, and snippets.

View SongTaehwan's full-sized avatar
🎯
Focusing

Song Taehwan SongTaehwan

🎯
Focusing
View GitHub Profile

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.
@SongTaehwan
SongTaehwan / index.js
Created July 16, 2020 04:36
Miso Coding Test #1
#!/usr/bin/env node
const args = process.argv.slice(2);
function add(a, b) {
if (a.length < b.length) {
let temp = a;
a = b;
b = temp;
}