DEV Community

Heidi Fryzell
Heidi Fryzell

Posted on

Change GitHub Repo origin from https to SSH - Day 3

Yesterday I set up Git and GitHub on my PC to work on my dev-playground project.

I was connecting to the remote origin with https.

I soon found out that every time I wanted to push to GitHub I had to enter my personal access token. Yikes!

A better way is to use SSH.

  1. Check for existing SSH Keys on your computer
  2. Generate a new SSH key and add it to the SSH agent
  3. Add the new SSH key to your GitHub Account
  4. Change GitHub url from https to SSH

🤦‍♀️ Ah-ha Moment

If you use the SSH agent you don't have to enter a passphrase every time you connect with GitHub. I need to do this on my Mac! I have been wasting a lot of time entering that passphrase... 😳

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay