About cloning a repository
You can clone a repository from GitHub.com to your local computer to make it easier to fix merge conflicts, add or remove files, and push larger commits. When you clone a repository, you copy the repository from GitHub.com to your local machine.
Cloning a repository pulls down a full copy of all the repository data that GitHub.com has at that point in time, including all versions of every file and folder for the project. You can push your changes to the remote repository on GitHub.com, or pull other people's changes from GitHub.com. For more information, see "Using Git".
You can clone your existing repository or clone another person's existing repository to contribute to a project.
On GitHub.com, navigate to the main page of the repository.
Above the list of files, click Code.
To clone the repository using HTTPS, under "Clone with HTTPS", click . To clone the repository using an SSH key, including a certificate issued by your organization's SSH certificate authority, click Use SSH, then click . To clone a repository using GitHub CLI, click Use GitHub CLI, then click .
Open TerminalTerminalGit Bash.
Change the current working directory to the location where you want the cloned directory.
Type git clone, and then paste the URL you copied earlier.
Press Enter to create your local clone.
To clone a repository locally, use the repo clone subcommand. Replace the repository parameter with the repository name. For example, octo-org/octo-repo, monalisa/octo-repo, or octo-repo. If the OWNER/ portion of the OWNER/REPO repository argument is omitted, it defaults to the name of the authenticating user.
You can also use the GitHub URL to clone a repository.
An empty repository contains no files. It's often made if you don't initialize the repository with a README when creating it.
On GitHub.com, navigate to the main page of the repository.
To clone your repository using the command line using HTTPS, under "Quick setup", click . To clone the repository using an SSH key, including a certificate issued by your organization's SSH certificate authority, click SSH, then click .
Alternatively, to clone your repository in Desktop, click Set up in Desktop and follow the prompts to complete the clone.
Open TerminalTerminalGit Bash.
Change the current working directory to the location where you want the cloned directory.
Type git clone, and then paste the URL you copied earlier.
Press Enter to create your local clone.
When cloning a repository it's possible that you might encounter some errors.
If you're unable to clone a repository, check that:
Read more here:
Cloning a repository - GitHub Docs
- Cloning - The New York Times [Last Updated On: June 10th, 2016] [Originally Added On: June 10th, 2016]
- Cloning - Learn Genetics [Last Updated On: June 12th, 2016] [Originally Added On: June 12th, 2016]
- Cloning Fact Sheet - Genome.gov [Last Updated On: June 12th, 2016] [Originally Added On: June 12th, 2016]
- Reasons Against Cloning - VIDEOS & ARTICLES [Last Updated On: June 17th, 2016] [Originally Added On: June 17th, 2016]
- How Cloning Works | HowStuffWorks [Last Updated On: June 17th, 2016] [Originally Added On: June 17th, 2016]
- Cloning - Wikipedia, the free encyclopedia [Last Updated On: June 17th, 2016] [Originally Added On: June 17th, 2016]
- How Cloning Works | HowStuffWorks [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning - Let Us Reason [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- The Ethics of Human Cloning and Stem Cell Research ... [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning - Scratch Wiki [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning = Cruelty | Compassion in World Farming [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning - Wookieepedia - Wikia [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- ::Cloning:: - Mount Holyoke College [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- What is Cloning? (with pictures) - wiseGEEK [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning - Types, Technique, Animals and More [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- What is Cloning? - Learn Genetics [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Molecular Cloning [Last Updated On: June 21st, 2016] [Originally Added On: June 21st, 2016]
- Reasons Against Cloning - VIDEOS & ARTICLES [Last Updated On: June 21st, 2016] [Originally Added On: June 21st, 2016]
- Cloning Blues - TV Tropes [Last Updated On: June 21st, 2016] [Originally Added On: June 21st, 2016]
- Cloning (Stanford Encyclopedia of Philosophy) [Last Updated On: June 30th, 2016] [Originally Added On: June 30th, 2016]
- Cloning - Science Daily [Last Updated On: June 30th, 2016] [Originally Added On: June 30th, 2016]
- Cloning - Food and Drug Administration [Last Updated On: July 3rd, 2016] [Originally Added On: July 3rd, 2016]
- Human cloning - Wikipedia, the free encyclopedia [Last Updated On: July 8th, 2016] [Originally Added On: July 8th, 2016]
- Human Cloning: What is cloning? How to clone. Is cloning ... [Last Updated On: August 16th, 2016] [Originally Added On: August 16th, 2016]
- Human Cloning | The Center for Bioethics & Human Dignity [Last Updated On: August 19th, 2016] [Originally Added On: August 19th, 2016]
- News - Clonaid.com [Last Updated On: August 23rd, 2016] [Originally Added On: August 23rd, 2016]
- Cloning Fact Sheet [Last Updated On: September 11th, 2016] [Originally Added On: September 11th, 2016]
- Dolly (sheep) - Wikipedia, the free encyclopedia [Last Updated On: September 18th, 2016] [Originally Added On: September 18th, 2016]
- DNA Cloning with Plasmid Vectors - Molecular Cell Biology ... [Last Updated On: September 18th, 2016] [Originally Added On: September 18th, 2016]
- Cloning/Embryonic Stem Cells - National Human Genome Research ... [Last Updated On: October 4th, 2016] [Originally Added On: October 4th, 2016]
- Pros and Cons of Cloning - Buzzle [Last Updated On: October 4th, 2016] [Originally Added On: October 4th, 2016]
- Cloning - Wikipedia [Last Updated On: November 8th, 2016] [Originally Added On: November 8th, 2016]
- Mammoth - Wikipedia [Last Updated On: January 25th, 2017] [Originally Added On: January 25th, 2017]
- Molecular Cloning: Basics and Applications | Protocol [Last Updated On: January 26th, 2017] [Originally Added On: January 26th, 2017]
- Crustacean Cloning The Poetry of Science - ScienceBlog.com (blog) [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Don't fall for this 'Facebook Cloning' scam - NEWS10 ABC - NEWS10 ABC [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Beware Of 'Facebook Cloning' | 9news.com - 9NEWS.com [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Beware of 'Facebook Cloning' | KGW.com - kgw.com [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Don't fall for this 'Facebook cloning' scam | WJHL - WJHL.com - WJHL [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Don't fall for this Facebook cloning scam | WFLA.com - WFLA [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- 20 years after Dolly the sheep, human cloning is no closer - Genetic Literacy Project [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Beware of Facebook 'cloning' scam - USA TODAY [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Cloning Vector and its Characteristics | Chemistry Learning [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Beware of 'Facebook Cloning' - KSDK.com [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Facebook cloning debunked - The i newspaper online iNews - iNews [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Don't fall for this Facebook cloning scam | WDTN - WDTN [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Hard Drive Cloning Software Why You Need It Acronis [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Cloning - The Hastings Center [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Hair Cloning & Multiplication | Bernstein Medical [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- This Crab Clones Its Allies by Ripping Them in Half - The Atlantic [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Watch out for this crazy Facebook cloning scam! - Komando [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Boffins create quantum cloning machine to intercept 'secure ... - The INQUIRER [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Call Kurtis Investigates: Triple Tag Team Scam Started With Cloned Facebook Profile - CBS Local [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- Quantum Cloning Machine Reveals Clues That Could Protect Against Hacking - Photonics.com [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Steve Bannon wanted to make a movie about cloning, abortion, and ... - A.V. Club (blog) [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Police investigating recent reports of credit card cloning in Aiken ... - Aiken Standard [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Steve Bannon's Unproduced Movie About Cloning, Nazis, and Walt ... - Gizmodo [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Gang arrested for cloning debit cards, stealing money - The Hindu [Last Updated On: February 11th, 2017] [Originally Added On: February 11th, 2017]
- Phone cloning - Wikipedia [Last Updated On: February 11th, 2017] [Originally Added On: February 11th, 2017]
- Drive cloning in Windows 10 with free tools - Computerworld [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- Why Google's Spanner Database Won't Do As Well As Its Clone - The Next Platform [Last Updated On: February 15th, 2017] [Originally Added On: February 15th, 2017]
- Scientists Are Close to Cloning a Woolly Mammoth - Popular Mechanics [Last Updated On: February 17th, 2017] [Originally Added On: February 17th, 2017]
- 20 years after Dolly: Everything you always wanted to know about the cloned sheep and what came next - The Conversation US [Last Updated On: February 18th, 2017] [Originally Added On: February 18th, 2017]
- Scientists say we can clone a woolly mammoth. But should we? - Christian Science Monitor [Last Updated On: February 18th, 2017] [Originally Added On: February 18th, 2017]
- 15 Animals That Have Been Successfully Cloned by Scientists - Interesting Engineering [Last Updated On: February 20th, 2017] [Originally Added On: February 20th, 2017]
- Must reads: Populism, sexism, cloning, and rudeness - GlobalComment.com [Last Updated On: February 20th, 2017] [Originally Added On: February 20th, 2017]
- Facebook does it again. WhatsApp launches revamped Status, cloning Snapchat - Catch News [Last Updated On: February 22nd, 2017] [Originally Added On: February 22nd, 2017]
- It's Been 20 Years Since We Cloned A Sheep. Why Haven't We ... - GOOD Magazine [Last Updated On: February 22nd, 2017] [Originally Added On: February 22nd, 2017]
- Reviving woolly mammoths will take more than two years - BBC News [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- How to clone your PC hard drive using Macrium Reflect - Windows Central [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- Pabrai And The Shameless Cloning Portfolio - Seeking Alpha [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- 20 Years After Dolly, Where Are We With Cloning? - Inverse [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- 20 years after Dolly the sheep's debut, Americans remain skeptical ... - Pew Research Center [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- 20 years after Dolly: Everything you always wanted to know about ... - Bizcommunity.com [Last Updated On: February 24th, 2017] [Originally Added On: February 24th, 2017]
- Another cloning success shows technology being used by everyday graziers - ABC Online [Last Updated On: February 24th, 2017] [Originally Added On: February 24th, 2017]
- 20 years after Dolly the sheep, potential of cloning remains unclear - CNN [Last Updated On: February 25th, 2017] [Originally Added On: February 25th, 2017]
- More lessons from Dolly the sheep: Is a clone really born at age zero ... - Salon [Last Updated On: February 26th, 2017] [Originally Added On: February 26th, 2017]
- 20th Anniversary of Dolly the Cloned Sheep | Men's Health - Men's Health [Last Updated On: February 28th, 2017] [Originally Added On: February 28th, 2017]
- The Angels had two No. 97s on the basepaths, may be cloning their players - MLB.com [Last Updated On: March 1st, 2017] [Originally Added On: March 1st, 2017]