Re: connecting the local main branch to the remote origin/main without pushing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux