美文网首页
解决冲突

解决冲突

作者: harukou_ou | 来源:发表于2019-02-09 00:51 被阅读4次

    $ cat readme.txt

    Git is a distributed version control system.
    Git is free software distributed under the GPL.
    Git has a mutable index called stage.
    Git tracks changes of files.
    <<<<<<< HEAD
    Creating a new branch is quick & simple.
    =======
    Creating a new branch is quick AND simple.
    >>>>>>> feature1
    

    修改后再次
    $ git add readme.txt
    $ git commit -m"complict fixed"
    查看合并状况:

    $ git log --graph --pretty=oneline --abbrev-commit

    |\  
    | * 14096d0 (feature1) AND simple
    * | 5dc6824 & simple
    |/  
    * b17d20e branch test
    * d46f35e (origin/master) remove test.txt
    * b84166e add test.txt
    * 519219b git tracks changes
    * e43a48b understand how stage works
    * 1094adb append GPL
    * e475afc add distributed
    * eaadf4e wrote a readme file
    

    相关文章

      网友评论

          本文标题:解决冲突

          本文链接:https://www.haomeiwen.com/subject/ylkasqtx.html