Clone GitHub Private Repository Using SSH On Mac

Generate and configure SSH key and Clone your private repositories.

Bharathiraja
CodeX

--

Photo by Yancy Min on Unsplash

GitHub is a very popular version control system provider. Every project must implement the version control system. GitHub offers a free plan to create unlimited public and private repositories. One of the big competitors for Github is Bitbucket. Github and Bitbucket are my personnel favourite version control system providers. In this tutorial, we are going to learn, how to access/clone the Github private repository using SSH.

GitHub offers private repositories in the free plan. We can create many unlimited private repositories. We are not able to add collaborators / contributors to our private repository in the free plan. You need to upgrade your account to the GitHub pro version to add multiple developers to your private repository.

We can easily clone the public repositories using the git clone command without any problem. But if you want to clone a private repository on GitHub, we need to add few security settings. In real-time projects, we always use the private repository to store our code.

In this tutorial, we will learn, how to clone the GitHub private repositories in a step-by-step example using Mac OS.

--

--

Bharathiraja
CodeX
Writer for

AWS | DevOps | Kubernetes | Terraform| Angular | Deep&Machine Learning, Ionic, Full Stack Developer. Learn more at https://github.com/bharathirajatut