Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2021 13:47:37 -0500
From:      Ed Maste <emaste@freebsd.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: git equivalent of 'svn update'
Message-ID:  <CAPyFy2DQPqNRxe6vOVyPMA-=5wV%2BvxqNnYAyQ%2BwSB%2Bew1wqWDA@mail.gmail.com>
In-Reply-To: <20210116183528.GA41499@troutmask.apl.washington.edu>
References:  <20210116183528.GA41499@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 16 Jan 2021 at 13:35, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
>
> In the git world, what is the equivalent of 'svn update'
> within a subdirectory of the /usr/src hierarchy.

You can use something like
% git checkout freebsd/main sys/dev/bge
to update just sys/dev/bge to match freebsd/main. This will leave you
with staged changes which you can then commit (locally).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2DQPqNRxe6vOVyPMA-=5wV%2BvxqNnYAyQ%2BwSB%2Bew1wqWDA>