In this article, you will find how to clone an empty repository. An empty repository does not consist of any files. When you create a repository, don’t forget to include a README.
Let us follow the steps given below
- Open the repository’s main page on “GitHub.com”.
- Under the “Quick Setup” option, click the symbol on the right-hand side of the screen, to clone your repository using the command line using HTTPS. Click SSH, then click to clone the repository with an SSH key and certificate issued by your organization’s SSH certificate authority.
- Click “Set up in Desktop” to clone your repository in Desktop. Follow the prompts to complete the cloning process.
- “Git Bash” must be opened.
- Set your current working directory to the destination of the cloned directory.
- Enter git clone and paste the URL you copied previously.
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY - Finally, press enter to make your native clone.
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
> Cloning into `Spoon-Knife`…
> remote: Counting objects: 10, done.
> remote: Compressing objects: 100% (8/8), done.
> remove: Total 10 (delta 1), reused 10 (delta 1)
> Unpacking objects: 100% (10/10), done.
This is how you can clone an empty repository. For any query contact our support staff at any moment. Also, don’t forget to get in touch with our support staff.
For those looking to expand their cloning capabilities, we also have a comprehensive guide on How to Clone Protection Plan Using Acronis.