git equivalent of 'svn update'

Ed Maste emaste at freebsd.org
Sat Jan 16 18:47:58 UTC 2021


On Sat, 16 Jan 2021 at 13:35, Steve Kargl
<sgk at 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).


More information about the freebsd-current mailing list