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