zoukankan      html  css  js  c++  java
  • git 常用命令

    <<<<<<< HEAD

    new new new new code

    =======

    old old old code

    >>>>>>> xxxxxxxxxxxxxxxxxxxxxxx

    分析:head 到 =======里面的lalala是自己的commit的内容

    =========到 >>>>>>里面的hehehe是下拉的内容

    根据需要删除代码就行了 完事把<<<<<<< ======= >>>>>>都删掉冲突就解决了

    在svn更新文件时会产生有冲突的文件,一般有两种解决办法:

    1、更新文件之前直接查看对比不同之处,手动调整资源库中的文件内容和本地的文件内容进行合并;

    2、直接更新,更新之后打开该文件会有这样的标识符<<<<<<< .mine,=======,>>>>>>>.r3541,这代表什么意思呢?

    <<<<<<< .mine

    这里的内容呢,就是你本地的内容,显而易见mine就是自己的意思嘛!

    =======

    而这里的内容就是资源库中的内容,这是svn更新之时自动合并产生的结果;

    >>>>>>>.r3541

    (这里的.r3541代表是版本号)

    并且在更新完的时候在该文件的同目录下会产生三个文件:R.java.mine,R.java.r3368,R.java.r3439

    R.java.mine是你自己修改后准备提交的那个版本;

    R.java.r3368是你们的初始版本;

    R.java.r3439是别人赶在你之前提交的那个版本;

  • 相关阅读:
    remove white space from read
    optimize the access speed of django website
    dowload image from requests
    run jupyter from command
    crawl wechat page
    python version 2.7 required which was not found in the registry windows 7
    health
    alternate rows shading using conditional formatting
    word
    【JAVA基础】static 关键字
  • 原文地址:https://www.cnblogs.com/yszr/p/14370738.html
Copyright © 2011-2022 走看看