This should work as well:

$ git fetch —all
$ git checkout main

Regards
JB

> Le 21 avr. 2021 à 13:17, Andrea Cosentino <ancosen1...@yahoo.com.INVALID> a 
> écrit :
> 
> Hello,
> 
> There is a little suggestion on the moved repositories, suggesting how to do 
> it.
> 
> For completeness here is the command list:
> git branch -m master main
> git fetch origin
> git branch -u origin/main main
> git remote set-head origin -a
> 
> --
> Andrea Cosentino 
> ----------------------------------
> Apache Camel PMC Chair
> Apache Karaf Committer
> Apache Servicemix PMC Member
> Email: ancosen1...@yahoo.com
> Twitter: @oscerd2
> Github: oscerd
> 
> 
> 
> 
> 
> 
> On Wednesday, April 21, 2021, 10:40:13 AM GMT+2, Claus Ibsen 
> <claus.ib...@gmail.com> wrote: 
> 
> 
> 
> 
> 
> Hi
> 
> It would be good to post here the CLI commands you need to execute to
> update from master to main
> 
> On Thu, Apr 8, 2021 at 2:20 PM Andrea Cosentino <anco...@gmail.com> wrote:
>> 
>> Hello,
>> 
>> I think we need some coordination in the renaming of master branches to
>> main in all of our repositories.
>> 
>> I think we need to come up to INFRA with a list of repos we want to move to
>> main.
>> 
>> Then we need to check every reference in Jenkins or gh actions and align.
>> 
>> It doesn't really make sense to rename just a couple of repositories in
>> subprojects of the ecosystem.
>> 
>> So I think we need to list what repositories are now missing.
>> 
>> We have:
>> camel-quarkus done
>> camel-website done
>> 
>> We are missing:
>> camel
>> camel-example (x 3)
>> camel-k
>> camel-k-examples
>> camel-k-runtime
>> camel-kafka-connector
>> camel-kafka-connector-examples
>> camel-performance-tests
>> 
>> probably more. I need to complete the list.
>> 
>> Thoughts?
> 
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
> 

Reply via email to