Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between cloning and downloading [duplicate]

Tags:

I have started using GitHub recently. I would like to know the difference between cloning and downloading a GitHub repository. Does they both lead to making a copy of the repository?

like image 602
Sai Ram Avatar asked Aug 12 '15 23:08

Sai Ram


People also ask

Is cloning same as downloading in GitHub?

My understanding of the difference between cloning and downloading a project on Github is that by doing a clone you have git instantly enabled on that project, and a connection with the remote repository where you cloned it from, and so you get access to the history and commit messages and so on.

What is the difference between clone and download in bitbucket?

You can only clone into a local directory that is a properly initialized Git repository (using the git init command). Downloading a repository archive only copies a repository's source files from a specific point in time, depending on what was chosen to be copied.

What is the difference between git clone and download Zip?

"clone" uses git software on your computer to download the source code and it's entire version history. "download zip" creates a zip file of just the current version of the source code for you to download - the project history is not included.

Is cloning the same as copying git?

Cloning a repository gives you a copy of that repository and configures the original repository as a remote. Copying a repository just gives you a copy of that repository. (Though you can of course just add the remote definition afterwards via git remote add .)


1 Answers

When you download the repo it just gives you all the source files with no .git so you dont have the repo. When you clone you get a copy of the history and it is a functional git repo.

like image 181
Michael Rice Avatar answered Sep 22 '22 08:09

Michael Rice