Part 6 – Adding SSH Key to GitHub [Git-ing Started with Git Series]


Do you hate typing in your username and password for GitHub everytime you make a push? Well that ends today because we are going to learn to generate an SSH key for our computer and to attach it to our GitHub account.

You can get all the code snippets here:

Coming Up:
We clone (copy) and fork projects from github to our computer.


Previous Video [Part 5]:
Next video [Part 7]: Coming Soon

Full Playlist for the “Git-ing Started with Git” Series:


Subscribe to DevMarketer Insider – A weekly (once a week) email newsletter to fans that want to know everything that is happening with DevMarketer, including announcements and articles not published on this channel. No spam ever, I promise, unsubscribe anytime.


Subscribe for New Releases!

Subscribe to DevMarketer Insider

Twitter –
(ask me questions!)


Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Email me

Thanks for all your support!

Tags: Git basics and learning git tutorial. Best tutorial git easiest tutorial git. Git on Mac, Linux, Windows. Tutorials with Alex, devmarketer


Xem thêm bài viết khác:


  1. this took me a day to get done before a watched this video!!
    also, I learned something new like I can change files inside the terminal using "nano" hahaha.
    I don't leave comments often, but I just wanna share how much I appreciate this video.

  2. lmaoo… "… what do they call it? the git bash. so for windows you will be using the git bash terminal thing?" Lol the confusion in your voice whenever you reference git bash. Git bash is just bash for windows, with git installed.

  3. I changed my password on github and the auth with ssh doesnt work anymore, what should I do add a new key and delete the old one or update the new one? If so can you link me how to do so I have trouble finding that info, thanks!

  4. I don't understand, I've never created any ssh key, yet I can commit, clone and push projects into my gitlab without having to enter any password.
    I tried editing and pushing a random projects as I found this behaviour weird, but obviously it didn't let me push the project (cause it is not my project)
    Is there any way I could have linked my gitlab account to my local git without realising it? x)

  5. First of all, thank you for telling us the subject in detail, explanatory, beautiful and understandable language. I would like to point out that I benefited a lot as a Windows user. However, I had to investigate some points in several places. Therefore, I have written all the necessary steps for the convenience of other Windows users one by one in this comment.

    Windows users can follow these steps via Git Bash:
    1- $ ssh-keygen -t rsa -b 4096 -C ""
    2- $ eval "$(ssh-agent -s)"
    3- $ ssh-add ~/.ssh/id_rsa
    4- $ cat .ssh/
    5- $ ssh -T
    6- $ git remote set-url origin
    7- Then make changes to any file in the repository. Afterwards follow the add and commit steps, respectively.
    8- $ git push –force origin
    **No need to add dollar symbols. It's already at the beginning of the line in Git Bash. I wrote them to avoid confusion.**

    Have an Octotastic Day! (:


Please enter your comment!
Please enter your name here