Andreas Schwab <schwab@xxxxxxxxxxxxxx> writes: > On Dez 28 2024, crstml@xxxxxxxxx wrote: > >> My question is: >> Is it possible when applying the method 2 to have (without pushing) >> the local main branch connected to the remote origin/main branch as >> in the case of method 1 which by cloning connects these branches. > > You can establish the effect by setting two config entries: > > $ git config branch.main.remote origin > $ git config branch.main.merge refs/heads/main Perfect ;-) Thanks.