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

pushing a branch without merging

From
Carlo Trimarchi <mr.spoon21@gmail.com>
Date
Jun 20, 2011, 14:11 UTC
Message-ID
<BANLkTin4fpwX9NgnP0U1+z9tRA=akR6MDg@mail.gmail.com>

Hi, I'm managing a website with Git. I work on my local machine and push changes to a bare git repository on a remote server. Then there there is a hook to pull those changes in a directory with the live website. I use the server only for the development version of the site and it happens that when I'm working on a branch feature I want to show to others what I'm doing.

So, on the local machine I can easily create a new branch, but I don't know how to push what I modified in the new branch without affecting the master branch. What am I missing?

Next: Carlo Trimarchi
Message 1 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.