git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: cogito remote branch

From
MMichaelTiloDressel@t-online.de <michaeltilodressel@t-online.de>
Date
Nov 12, 2007, 08:00 UTC
Message-ID
<1IrUDz-01jF4a0@fwd29.aul.t-online.de>
In-Reply-To
<Pine.LNX.4.64.0711111520260.4362@racer.site>
(I forgot to put the subject previously)
> Johannes Schindelin wrote:
>Hi,
>On Sun, 11 Nov 2007, Michael Dressel wrote:
Show 6 quoted lines
>> 
>> >Michael Dressel wrote:
>> >Ok nice. Another thing is that git-push will push all the tracking 
>> >branches in refs/remotes/origin. 
>> 
>> I learned that I only have to edit the .git/config file to avoid that
>> git-push pushes everything. 
>It is documented that you can use "git push origin ".
>> [remote "origin1"]
>>         url = /home/repo/src
>>         fetch = +refs/heads/master:refs/remotes/origin/master
>>         push = +refs/heads/master:refs/heads/master
>With "push", it is not necessary to specify the ":".
So just a line like
             push = master

A push is needed somewhere in order to prevent every remote to be pushed by default, right?

>Also, if "master" is unambiguous, you can write just "master" instead
of 
>"refs/heads/master".
>Furthermore, I suggest not forcing (that's  what "+" does) the push,
since 
>it is quite possible that you push something old in the wrong
direction.  
O.k. I will reconsider this.

Cheers, Michael

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 5 in “(unknown)”
  1. Michael DresselNov 11, 2007
  2. Johannes SchindelinNov 11, 2007
  3. MichaelTiloDressel@t-online.deNov 12, 2007
  4. Johannes SchindelinNov 12, 2007
  5. MichaelTiloDressel@t-online.deNov 12, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.