Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2020 22:33:22 -0500
From:      monochrome <monochrome@twcny.rr.com>
To:        freebsd-current@freebsd.org
Subject:   Re: git and the loss of revision numbers
Message-ID:  <8fb16182-e590-6bf0-747f-bc820dea1a3e@twcny.rr.com>
In-Reply-To: <6a83684d-ee5b-5002-3553-7b383f02768c@nomadlogic.org>
References:  <54116640-E6A1-4C53-9D7E-4384F942628E@ellael.org> <8ABAC674-89AA-47BE-996C-4DF6E7713F21@ellael.org> <53dd689b-2401-8e90-f332-50c60c549c2e@FreeBSD.org> <CAPyFy2DW0YDUK%2Bkir2H_e8LVT-P-kQ0PMmKQO6m%2B016Wb=Hd0A@mail.gmail.com> <1d1e2003-0cc1-6e67-0ceb-f0fcba03f8f7@twcny.rr.com> <6a83684d-ee5b-5002-3553-7b383f02768c@nomadlogic.org>

next in thread | previous in thread | raw e-mail | index | archive | help

sry forgot details:

source tree @ ead01bfe8

git -C /usr/src checkout gf20c0e331
error: pathspec 'gf20c0e331' did not match any file(s) known to git

what is the 'g' for?

git -C /usr/src checkout f20c0e331
M       sys/amd64/conf/GENERIC
HEAD is now at f20c0e331 caroot: drop $FreeBSD$ expansion from root bundle

yet I don't see any indication that anything changed, and now it wont 
update at all:

git -C /usr/src pull --ff-only
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

     git pull <remote> <branch>



On 12/28/20 7:56 PM, Pete Wright wrote:
> 
> On 12/28/20 4:38 PM, monochrome wrote:
>> what would be the git command for reverting source to a previous 
>> version using these numbers? for example, with svn and old numbers:
>> svnlite update -r367627 /usr/src
>>
> I will generally just checkout the short git hash like so in my local 
> checkout:
> $ git checkout gb81783dc98e6
> 
> you can quickly get the hashes by running "git log" from your checkout.
> 
> cheers,
> -pete
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8fb16182-e590-6bf0-747f-bc820dea1a3e>