zoukankan      html  css  js  c++  java
  • Git 冲突合并

    在多人协作开发,经常遇到Git冲突,每次都不大记住命令。所以自己备注一下!

    git pull 之后有冲突:

    $ git pull
    remote: Counting objects: 5, done.
    remote: Compressing objects: 100% (2/2), done.
    remote: Total 3 (delta 0), reused 0 (delta 0)
    Unpacking objects: 100% (3/3), done.
    From g:/software/repository/git/itheima26
    50db030..a04027a master -> origin/master
    Auto-merging readme.txt
    CONFLICT (content): Merge conflict in readme.txt
    Automatic merge failed; fix conflicts and then commit the result.

    解决方法:
    1.git mergetool
    调用上面命令之后会提示你输入编辑方法,输入:beyond compare 进入编辑器.

    2.编辑完之后.调用git commit -a 把当前目录中所有都提交到本地库中.

    3.git push origin master 提交到远程库中.

    人生如棋,我愿为为卒;行走虽慢,可曾见我后退一步!
  • 相关阅读:
    .NET CF 枚举设备窗口
    .NET CF WM设备(手机)振动
    如何将 byte[] 转换为 IntPtr?
    Mobile 重启设备
    如何删除只读文件?
    随笔
    故乡的原风景
    岁月神偷
    opengl纹理映射
    bootstrap 学习笔记
  • 原文地址:https://www.cnblogs.com/MPPC/p/5355479.html
Copyright © 2011-2022 走看看