# Using git clone

3 messages from 2014-11-04 to 2014-11-09. Participants: Dr. George E. Moore, brian m. carlson, Matthieu Moy.
Thread: https://gitlist.dev/t/37907

## Dr. George E. Moore, 2014-11-04 16:59

Subject: Using git clone
Message-ID: <1415120399.4259.5.camel@precision690.xccg.com>
URL: https://gitlist.dev/e/1415120399.4259.5.camel%40precision690.xccg.com

```
Is it appropriate to use "git clone" to update the master branch of an
existing repository? The current master branch is for a much earlier
release candidate.

```

## brian m. carlson, 2014-11-08 17:15

Subject: Re: Using git clone
Message-ID: <20141108171539.GB162918@vauxhall.crustytoothpaste.net>
URL: https://gitlist.dev/e/20141108171539.GB162918%40vauxhall.crustytoothpaste.net
In-Reply-To: <1415120399.4259.5.camel@precision690.xccg.com>

```
On Tue, Nov 04, 2014 at 11:59:59AM -0500, Dr. George E. Moore wrote:
> Is it appropriate to use "git clone" to update the master branch of an
> existing repository? The current master branch is for a much earlier
> release candidate.

You generally want to use git fetch or git pull in that case.  git clone
creates an entirely new copy of the original repository.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

```

## Matthieu Moy, 2014-11-09 15:24

Subject: Re: Using git clone
Message-ID: <1094459024.7303740.1415546663657.JavaMail.zimbra@imag.fr>
URL: https://gitlist.dev/e/1094459024.7303740.1415546663657.JavaMail.zimbra%40imag.fr
In-Reply-To: <20141108171539.GB162918@vauxhall.crustytoothpaste.net>

```
----- Original Message -----
> You generally want to use git fetch or git pull in that case.  git clone
> creates an entirely new copy of the original repository.

Just to complement the answer: "git clone" is more or less a shorthand for "git init" followed by "git fetch" (to get the remote objects) and "git checkout" (to get the actual files). The original poster probably doesn't want the "git init" part here indeed.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

```
