[U-Boot-Custodians] FYI: "url" and "pushurl" options for git

Lukasz Majewski lukma at denx.de
Sat Aug 3 10:58:55 UTC 2019


Hi Tom,

> Hey all,
> 
> Given the number of pull requests I get with the SSH URI I think there
> may be a few people that don't know about a few tricks you can do with
> the remote section of .git/config.
> 
> The first of which is you can have both "url" and "pushurl", so for
> example I have:
> [remote "gitlab-ti"]
>         url = https://gitlab.denx.de/u-boot/custodians/u-boot-ti.git
> 	pushurl = git at gitlab.denx.de:u-boot/custodians/u-boot-ti.git
> 	fetch = +refs/heads/*:refs/remotes/gitlab-ti/*
> 
> For the TI custodian tree.  The next thing is you can have more than
> one pushurl.  So to keep everything up to date on the main tree
> itself I have 3 pushurl lines.  One for gitlab, one for the github
> mirror and one for my personal github.  A single "git push" sends to
> all three trees.
> 
> Hope this helps!
> 

Yes, it will :-).

Thanks for sharing this info.


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot-custodians/attachments/20190803/538354bf/attachment.sig>


More information about the U-Boot-Custodians mailing list