How to Copy an Empty Repository

December 20, 2023 / How-to Guide

Discover the steps to copy an empty repository in this article. An empty repository, lacking any files, awaits your cloning process. Ensure that when establishing a new repository, you remember to incorporate a README file.

Follow the steps:

  1. Navigate to the main page of the repository on “GitHub.com.”
  2. Opt for the “Quick Setup” feature, and select the symbol situated on the right side of the screen to initiate the cloning process via the command line using HTTPS. Alternatively, choose SSH, and proceed to clone the repository utilising an SSH key and certificate provided by your organisation’s SSH certificate authority.
    Quick setup
  3. Select “Set up in Desktop” to clone your repository using the desktop application. Follow the prompts that appear to finalise the cloning process.
    Set up in desktop
  4. Open “Git Bash” and navigate to the desired destination for the cloned directory as your current working directory. Execute the command git clone followed by pasting the URL copied earlier-
    $ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
  1. Finally, press “Enter” to initiate the creation of your local 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 concludes our article! This way you can copy an empty repository. Feel free to reach out to our support team anytime for assistance. Remember, our support staff is here to help, so do not hesitate to get in touch.

Spread the love