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.
Re: Using git clone
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
Re: Using git clone
----- 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/