[git-users] Building GIT: how to get the set of source code on a branch in order to build it?

2016-02-10 Thread Suu
my interest is in creating scripts to build software stored in GIT repos. (I am a build engineer) Brand new to GIT, actually never used it, but now i have to build it. I just want to 'get' the latest revision of the source code on a branch (or master depending on the case), change dir to it,

Re: [git-users] Building GIT: how to get the set of source code on a branch in order to build it?

2016-02-10 Thread Leam Hall
Your gut is correct. :) On 02/10/16 18:47, Suu Quan wrote: Thanks Leam Follow up. Case 2: already exists from a previous clone. Question: is it more efficient to 1.Do what Leam just said: “cd ; git pull” or 2.Rm –rf git clone ?? (gut feeling it’s #1 that is more efficient)

RE: [git-users] Building GIT: how to get the set of source code on a branch in order to build it?

2016-02-10 Thread Rahmat Budiharso
Git pull only pulls the changes so it will be much faster than clone the whole repo all over again On 11 Feb 2016 06:48, "Suu Quan" wrote: > Thanks Leam > > > > Follow up. > > Case 2: already exists from a previous clone. > > > > Question: is it more efficient to > > 1. Do

RE: [git-users] Building GIT: how to get the set of source code on a branch in order to build it?

2016-02-10 Thread Suu Quan
Thanks Leam   Follow up. Case 2: already exists from a previous clone.   Question: is it more efficient to 1.  Do what Leam just said: “cd ; git pull” or 2.  Rm –rf git clone ?? (gut feeling it’s #1 that is more efficient)     -Original Message- From: Leam Hall