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

Re: pushing a branch without merging

From
PJ Weisberg <pjweisberg@gmail.com>
Date
Jun 20, 2011, 15:51 UTC
Message-ID
<BANLkTik8j1g6wqeD7oGQra1Ep10uaTH0Rg@mail.gmail.com>
In-Reply-To
<20110620150303.GA2782@bee.lab.cmartin.tk>
On Monday, June 20, 2011, Carlos Martín Nieto <cmn@elego.de> wrote:
Show 7 quoted lines
> if you want to create the branch 'experimental', or if your deployment
> system only checks out the 'master' branch, you might find
>
>     git push website experimental:master
>
> useful. In this case you may have to force-push master again, which is
> not recommended (though in your case it might be fine).

FYI, that *replaces* the remore master branch with the local experimental branch. If you just want someone else to be able to be able to 'git pull website experimental', what you want to do is 'git push website experimental' or 'git push website --all'.

-- 
-PJ
Previous: Carlos Martín Nieto
Message 4 of 4 in “pushing a branch without merging”
  1. Carlo TrimarchiJun 20, 2011
  2. Carlo TrimarchiJun 20, 2011
  3. Carlos Martín NietoJun 20, 2011
  4. PJ WeisbergJun 20, 2011

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.