How to Clone an Empty Repository

November 7, 2022 / Web Development

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

  1. Open the repository’s main page on “GitHub.com”.
  2. 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.Quick Setup
  3. Click “Set up in Desktop” to clone your repository in Desktop. Follow the prompts to complete the cloning process.
    Cloning Process
  4. “Git Bash” must be opened.
  5. Set your current working directory to the destination of the cloned directory.
  6. Enter git clone and paste the URL you copied previously.
    $ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
  7. 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.

Dominos Search