This is useful if you have a handful of repos using a different SSH key than your default key.
Hit the subscribe button to receive more videos like this!
REFERENCE LINKS
---------------------------------------------------
► https://nickjanetakis.com/blog/using-...
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
► https://nickjanetakis.com/courses/
THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...
FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter: / nickjanetakis
► GitHub: https://github.com/nickjj
TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:07 -- A few use cases
1:18 -- Creating a local test repo
1:40 -- Creating 2 different ssh keys
2:20 -- Creating a private repo on GitHub and pushing our code to it
3:29 -- Things work initially due to how I have GitHub configured with my SSH key
4:08 -- Method 1: Setting the GIT_SSH_COMMAND environment variable
6:01 -- Adding one of the ssh keys as a deploy key on GitHub so we can use it
7:47 -- Method 2: Setting a local git config option
9:11 -- Overriding the config option with the environment variable approach