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

Re: Git branch workflow

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Nov 23, 2010, 03:05 UTC
Message-ID
<20101123030516.GA27595@nibiru.local>
In-Reply-To
<20101122170805.8jtzkqwxpcog0kgk@dennymagicsite.com>
* denny@dennymagicsite.com <denny@dennymagicsite.com> wrote:
Show 11 quoted lines
> Consider a specific scenario:
> I am on dev server on master branch and I want to develop a specific  
> feature F.
> I cut a Feature branch F from master and start working on the feature.  
>   Once I am done with most of the work on F and it works reasonably  
> well, I want to push it to production, but .. before I do I realize  
> that I want to make some CSS fixes to the site, unrelated to other  
> branches, and I can wait with pushing Feature branch to Production  
> until I fix up CSS reasonably well.
> Here is the question:  do I cut the CSS branch from Master or do I cut  
> it from the Feature branch?

My advise: always fork from the latest stable revision (in your case: production server's master). Before merging, always rebase onto latest master and possibly rerun the test cycle.

cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Previous: tom fogalNext: Drew Northup
Message 3 of 4 in “Git branch workflow”
  1. denny@dennymagicsite.comNov 22, 2010
  2. tom fogalNov 23, 2010
  3. Enrico WeigeltNov 23, 2010
  4. Drew NorthupNov 23, 2010

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.