4

What is the difference between ,

1. Select Git Clone ?

2. Select Git Create repository here .. and then Pull from repository ?

As shown like image.

Git Repo create

EDIT :

Actually we are going to use Review Board as our code review tool.That tool requires to create GIT Clone (1) method for create GIT.But currently we are using 2 option as for our developments.So because of that there must be fundamentally (behind the seen) differences of those 2 methods.What is that ?

Sampath
  • 63,341
  • 64
  • 307
  • 441

3 Answers3

8

Git Clone just clones an existing repo (that other people already work) from a specified URL. On the other hand to create a new repo means start a new repo from the beginning.

koninos
  • 4,969
  • 5
  • 28
  • 47
  • 1
    out of the 3 answers here, this is the only one that gets it – prusswan Nov 23 '12 at 14:25
  • Do you have any idea about why clone is suitable for Review board ? – Sampath Nov 24 '12 at 06:23
  • Review Board supports multiple source code repositories. Works best if you have a primary Git server where people clone from and push their changes to. Once you have a local clone, you can start setting up your repository in Review Board. – koninos Nov 24 '12 at 11:53
  • Thanks for clean explanation. – Sampath Nov 24 '12 at 12:48
0

Speaking in Windows context:

  1. Is copy an Folder with content
  2. Is create a Folter and later copy the content
eisberg
  • 3,731
  • 2
  • 27
  • 38
  • I need a explanation as Git Context.The real difference of 2 methods or no difference at all. – Sampath Nov 23 '12 at 10:34
  • 1 is less steps to make than 2, else there should be no differences. I would prefer 1 over 2 in any case. – eisberg Nov 23 '12 at 10:48
0

Hardly any difference at all: the files in the repository will be the same and the history will be the same. It's possible that the repository configuration will wind up slightly different -- I think that clone sets some default branch mappings, while just pulling might not establish those links by default.

Andrew Aylett
  • 39,182
  • 5
  • 68
  • 95