Re: nicer frontend to get rebased tree?
- From
- Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
- Date
- Aug 22, 2008, 19:03 UTC
- Message-ID
- <4d8e3fd30808221203r1630addaodb87c0a8b34f0fd2@mail.gmail.com>
- In-Reply-To
- <20080822183129.GR23334@one.firstfloor.org>
On 8/22/08, Andi Kleen <andi@firstfloor.org> wrote:
Show 22 quoted lines
> On Fri, Aug 22, 2008 at 01:56:39PM -0400, Avery Pennarun wrote:
>> On Fri, Aug 22, 2008 at 1:46 PM, Andi Kleen <andi@firstfloor.org> wrote:
>> > But I presume that's a reasonable common usage. Would it
>> > make sense to have some standard git sub command that does that?
>> > ("get latest state of remote branch, doing what it takes to get it")
>> > Or is there already one that I missed?
>>
>> Isn't that just
>>
>> git fetch somewhere branchname
>> git reset --hard FETCH_HEAD
>>
>> ?
>
> My script right now does.
>
> git fetch origin
> git fetch --tags origin
> git remote update
> git checkout master
> git reset --hard origin/master
>why the two fetch? isn't git remote update sufficient?
ciao,
-- Paolo http://paolo.ciarrocchi.googlepages.com/