Skip to content

Instantly share code, notes, and snippets.

View GuillaumeFalourd's full-sized avatar
🏠
Working from home

Guillaume Falourd GuillaumeFalourd

🏠
Working from home
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.
@GuillaumeFalourd
GuillaumeFalourd / gh-dl-release
Created October 18, 2021 16:49 — forked from maxim/gh-dl-release
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#