Skip to content

Instantly share code, notes, and snippets.

View evalarumbe's full-sized avatar

Eva Larumbe evalarumbe

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.

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.
@evalarumbe
evalarumbe / my-git-cheat-sheet.md
Last active October 11, 2025 12:46
Documenting neat tricks until I get used to them

My git cheat sheet

Configure one computer to SSH into multiple GH accounts

Forked

Select and exclude multiple files with glob patterns

Say we have these in our current directory, and we only want to git add some of the files.

@evalarumbe
evalarumbe / less.md
Created November 22, 2020 03:48 — forked from nnja/less.md
A cheatsheet for using less on the command line

Tips for using less on the command line.

To navigate:

  • f = for next page
  • b = for previous page

To search:

  • /<query>