Multiple SSH Keys settings for different github account
create different public key
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "firstname.lastname@example.org"
|# Copy data from a Time Machine volume mounted on a Linux box.|
|# Usage: copy-from-time-machine.sh <source> <target>|
|# source: the source directory inside a time machine backup|
|# target: the target directory in which to copy the reconstructed|
|# directory trees. Created if it does not exists.|
If you're like me you have a dir like
~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually.
This will run
git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.