git setup/usage question

Mark Millard marklmi at yahoo.com
Wed Jan 27 08:18:41 UTC 2021



On 2021-Jan-26, at 23:24, Milan Obuch <freebsd-git at dino.sk> wrote:

> On Tue, 26 Jan 2021 15:15:22 -0800, Mark Millard <marklmi at yahoo.com>
> wrote:
> 
>> . . .
> 
>> By the way, the modern version of Warner's documentation
>> is at:
>> 
>> https://github.com/bsdimp/freebsd-git-docs/
>> 
>> and is the basis for the documentation update FreeBSD
>> will have in this area.
>> 
>> In the Cloning and Mirroring section of:
>> 
>> https://github.com/bsdimp/freebsd-git-docs/blob/main/faq.md
>> 
>> there is a little material about issues with using pare repos.
>> The Users section basically says that using bare will not be
>> documented. (I've never tired to use a bare repo.)
> 
> If well working setup can be achieved this way, things can be changed...
> 
>>> . . .
>> 
>> The "No staged changed migration" section of:
>> 
>> https://github.com/bsdimp/freebsd-git-docs/blob/main/src-cvt.md
>> 
>> reports on using the following to clone with the ref/notes related
>> material included:
>> 
>> git clone -o freebsd --config remote.freebsd.fetch='+refs/notes/*:refs/notes/*' https://git.freebsd.org/src.git freebsd-src
>> 
>> Note the "-o freebsd" that you did not use. The coning notes
>> in:
>> 
>> https://github.com/bsdimp/freebsd-git-docs/blob/main/mini-primer.md
>> 
>> also use the "-o freebsd" (but not the refs/notes related material).
>> 
> 
> Yes, because git said --bare and --origin are in conflict and can not
> be used together.

And FreeBSD has set things up for using --origin . Otherwise you are
on your own, from what I can tell. The conflict probably (partially?)
explains Warner indicating that he will not document use of bare
repos: too far from how they intend for folks to work with git.

>>> . . .
>> 
> 
> Thanks for pointing to another material. Something emerged from this
> discussion.

Glad it was of some help.

> I did a bit of digging into config file in git repository now and it
> looks like it is possible to get what I want with some editing there.
> It should be possible to achieve it via using 'git config' as well, but
> as this is my first attempt...
> 
> I need some time to verify working status or fix issues now. As soon as
> I get feeling it is OK for me I send new mail documenting what I did
> and how I use it.

Sounds to me like you would get more support sticking to what is
normally allowed to be mixed with --origin use. Otherwise you
may well be mostly on your own.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-git mailing list