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

Re: merge maintaining history

From
Jacob Keller <jacob.keller@gmail.com>
Date
Jan 26, 2017, 00:41 UTC
Message-ID
<CA+P7+xrU-ZO981fKCogm3s1gkz6X-8+fcTS4TG0B=_gqAEwNxQ@mail.gmail.com>
In-Reply-To
<5889436A.8000707@comcast.net>
On Wed, Jan 25, 2017 at 4:31 PM, David J. Bakeman <nakuru@comcast.net> wrote:
Show 13 quoted lines
> OK so what I've done so far is to clone the original then I added
> another remote connected to new repo.  Then I did git merge newrepo.  It
> did a bunch of stuff that flashed by really fast and then reported a
> conflict.  Now if I do a git st there are a bunch of files that seem to
> be already added to a commit and all the files with conflicts which it's
> says need to be fixed and added.
> I'm still learning git even after using it for several years.  I've
> never really seen this before.  So the already added files are the ones
> that git was able to merge mechanically?  If so can I diff those changes
> some way?  Would I have to un add (reset HEAD) all those files to see
> the diffs?  Would it have assumed that my changes are to be preferred?
>
> Thanks again for all the great help!
Try "git diff --cached" to show all the current differences saved in the index.

Thanks, Jake

Previous: David J. BakemanNext: Philip Oakley
Message 8 of 9 in “merge maintaining history”
  1. David J. BakemanJan 14, 2017
  2. Jacob KellerJan 15, 2017
  3. David J. BakemanJan 19, 2017
  4. Junio C HamanoJan 19, 2017
  5. Jakub NarębskiJan 20, 2017
  6. Junio C HamanoJan 20, 2017
  7. David J. BakemanJan 26, 2017
  8. Jacob KellerJan 26, 2017
  9. Philip OakleyJan 19, 2017

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.