请教一个初级问题,有关merge
git吧
全部回复
仅看楼主
level 2
断水为桥 楼主
工作目录中只有一个文件,a.cpp只有一行“this is a.cpp"
然后主分支为master,此时创建子分支develop。
切换到develop分支,在a.pp文件中新添加一行,“this is second line”
切换回master分支,此时执行git merge develop。则,master分支中的a.cpp文件出现第二行内容。
此时我删除master分支中a.cpp的第二行。重新执行merge。则提示Already up-to-date
为什么不是像第一次执行merge操作时一样,添加第二行内容???
求教大神
2014年10月26日 13点10分 1
level 9
先提交啊亲……commit之后再merge
2014年12月20日 10点12分 2
1