Re: query regarding git merge

2015-12-14 Thread Jeff King
On Sun, Dec 13, 2015 at 07:23:17PM +, brian m. carlson wrote: > On Mon, Dec 14, 2015 at 12:03:18AM +0530, Rohit Gupta wrote: > > Thanks brian. I understood my mistake in understanding the working of git > > merge. > > But isn't it wrong? As after merging, branch's logic can't work. How to get

Re: query regarding git merge

2015-12-13 Thread brian m. carlson
On Sun, Dec 13, 2015 at 05:55:59PM +, rohit gupta wrote: > Hi, > I am confused with git merge working. > > Suppose I have these 3 files in master branch- > a.txt > b.txt > d.txt > > I create a branch, add c.txt to it and commit. So its final contents > are- > a.txt > b.txt > c.txt > d.txt >

Re: query regarding git merge

2015-12-13 Thread brian m. carlson
[Please don't top-post.] On Mon, Dec 14, 2015 at 12:03:18AM +0530, Rohit Gupta wrote: > Thanks brian. I understood my mistake in understanding the working of git > merge. > But isn't it wrong? As after merging, branch's logic can't work. How to get > that right then ? If you know that the merge

query regarding git merge

2015-12-13 Thread rohit gupta
Hi, I am confused with git merge working. Suppose I have these 3 files in master branch- a.txt b.txt d.txt I create a branch, add c.txt to it and commit. So its final contents are- a.txt b.txt c.txt d.txt Then, I checkout master branch, delete a.txt, add e.txt and commit. So final contents