# 切换到新分支git checkout lgnew# 编辑test文件,添加一行内容 123,并提交cat .\lab\test.txtabc123git commit -a -m "added 123 to the test.txt"# 切换回主分支git checkout master# 编辑test文件,添加一行内容 456,并提交# 编辑test文件,添加一行内容 123,并提交cat .\lab\test.txtabc456git commit -a -m "added 456 to the test.txt"# 合并git merge lgnewAuto-merging lab/test.txtCONFLICT (content): Merge conflict in lab/test.txtAutomatic merge failed; fix conflicts and then commit the result.