using git to get a particular version of src

Chris bsd-lists at bsdforge.com
Mon Jan 25 17:21:23 UTC 2021


On 2021-01-25 08:31, tech-lists wrote:
> Hi,
> 
> I have this version installed:
> 
> 13.0-CURRENT #0 2ed50808d2b-c254384(main): Thu Nov 12 10:03:35 UTC 2020
> 
> I'd like to get the sources for this (want to make a no-debug kernel) as I 
> know
> this version works on this hardware.
> 
> But -current has gone to 14 and what was -current is now 13-stable. What git
> incantation is required to get 2ed50808d2b-c254384 sources, given an empty
> /usr/src and git method of ssh://anongit@git.freebsd.org ?
I am by *no* means a GIT expert
but will
cd /usr/src
git up 2ed50808d2b
accomplish your intended task?

HTH
> 
> thanks,


More information about the freebsd-current mailing list