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

Re: Working on merged branches whilst seeing current master

From
rhlee <richard@webdezign.co.uk>
Date
Nov 12, 2009, 16:49 UTC
Message-ID
<1258044562803-3994102.post@n2.nabble.com>
In-Reply-To
<1258030118389-3992599.post@n2.nabble.com>
Tim Mazid wrote:
Show 12 quoted lines
> 
> Actually, there's no reason you couldn't just 'git reset HEAD^' once you
> realise that the branch isn't ready. If you want to see the changes from
> master, you could just merge that into your branch. If you just want to
> see the content in master, you could use gitk or gitg, which allows you to
> view files at any commit.
> 
> Personally, I merge master into my branches, test and check, and fix, then
> merge the branch into master. This sometimes results in a fast-forward, if
> you haven't made changes to master. If you don't like that, you can always
> use the --no-ff option, though.
> 

I don't think 'git reset HEAD^' would work in my case as that only goes back one commit. I may have made many other changes on the master branch that I want to keep.

By merging from master into your branch, like you said, you get a nice graph view that shows what you've brought into your branch from master since you last left off. But doesn't this goes against the idea that branches should be independent, by bringing in changes from master?

-- 
View this message in context: http://n2.nabble.com/Working-on-merged-branches-whilst-seeing-current-master-tp3987667p3994102.html
Sent from the git mailing list archive at Nabble.com.
Previous: Tim MazidNext: Tim Mazid
Message 4 of 7 in “Working on merged branches whilst seeing current master”
  1. rhleeNov 11, 2009
  2. Nicolas SebrechtNov 11, 2009
  3. Tim MazidNov 12, 2009
  4. rhleeNov 12, 2009
  5. Tim MazidNov 26, 2009
  6. rhleeNov 12, 2009
  7. Nicolas SebrechtNov 12, 2009

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.