From: crstml@libero.it Date: Sun, 29 Dec 2024 10:03:19 GMT Subject: Re: connecting the local main branch to the remote origin/main without pushing Message-ID: <558a48b6-d818-a5bf-6988-e0a500c6d5fc@libero.it> In-Reply-To: <87h66nk9uy.fsf@igel.home> Andreas Schwab wrote: > On Dez 28 2024, crstml@libero.it 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 > Excelent. Thank you for the info. Cristian