P4merge是业界用于git merge和compare的图形化工具,本文简单介绍如何在windowns和linux下面配置和使用。1. P4merge的下载https://www.perforce.com/downloads/visual-merge-tool2. Linux下的安装
参见下文https://www.cnblogs.com/memory4young/p/installing-and-configuring-p4merge-for-git-on-ubuntu.html

3. Windows下的安装
参见下文https://blog.csdn.net/ikscher/article/details/44154013

4. .gitconfig的配置
windows的配置如下,linux的类似
[difftool "p4merge"]
cmd = p4merge.exe "$LOCAL" "$REMOTE"
[difftool]
prompt = false
[merge]
tool = p4merge
[mergetool "p4merge"]
cmd = p4merge.exe "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
trustExitCode = false
keepTemporaries = false
keepBackup = false
[mergetool]
prompt = false
[gui]
[guitool "Pull with Rebase"]
cmd = git pull --rebase
[guitool "Rebase/Rebsae onto revision..."]
cmd = git rebase $REVISION
revprompt = yes
[guitool "Rebase/Continue"]
cmd = git rebase --continue
[guitool "Rebase/Skip"]
cmd = git rebase --skip
[guitool "Rebase/Abort"]
cmd = git rebase --abort
[guitool "Stash/Save"]
cmd = git stash save
[guitool "Stash/Show"]
cmd = git stash show -p
[guitool "Stash/List"]
cmd = git stash list
[guitool "Stash/Pop"]
cmd = git stash pop
[guitool "Stash/Drop"]
cmd = git stash drop
confirm = yes
[guitool "Visual Diff/All"]
cmd = git difftool
[guitool "Visual Diff/Current File"]
cmd = git difftool $FILENAME
noconsole = yes
[guitool "Visual Merge"]
cmd = git mergetool 5. 使用git gui进行GUI的diff和merge

linux upgrade tool使用_p4merge的使用相关推荐

  1. linux ebtables tool

    文章目录 ebtables ebtables-standalone.c ebt_options ebt_matches 数据结构 总结 ebtables ebtables就是以太网桥防火墙,以太网桥工 ...

  2. linux mii tool源码,linux 下mii-tool ethtool 命令简单的使用

    ################################################################ 通过命令查看linux网卡的物理信息,状态: [root@node2 ...

  3. linux wifi tool,fluxion linux tool for wifi

    压缩包 : b3cb83d4ff391849ff255fb626c18d.zip 列表 fluxion/ fluxion/.git/ fluxion/.git/HEAD fluxion/.git/br ...

  4. linux 升级centos7,Linux之从Centos 6.x 升级Centos7

    1.安装升级工具依赖的软件包 yum -y install openscap pcre-devel libxml2-devel libxslt-devel m2crypto python-simple ...

  5. 如何从 Red Hat Enterprise Linux 6 升级到 Red Hat Enterprise Linux 7?

    https://access.redhat.com/zh_CN/solutions/3293791 如何从 Red Hat Enterprise Linux 6 升级到 Red Hat Enterpr ...

  6. linux之Centos6升级至centos7

    一.需求说明   centos官方于2020年12月2号停止了所有centos6更新维护,为了继续享受更新服务,redhat提供了一个redhat-upgrade-tool的升级工具,支持将cento ...

  7. linux/windows_ip查看(公网ip/私网ip)/通过域名查找ip/解读tracert 的返回结果

    linux/windows_ip查看(公网ip/私网ip)/通过域名查找ip/解读tracert 的返回结果 references [How to Check the IP Address in Li ...

  8. Linux CAN 驱动实验

    目录 CAN 协议简析 何为CAN CAN 电气属性 显隐性电平 接线 端接电阻 速度距离 CAN 协议 1.数据帧 2.遥控帧 3.错误帧 4.过载帧 5.帧间隔 CAN 速率 I.MX6ULL F ...

  9. Linux 音频驱动

    Linux 音频驱动 硬件介绍 WM8960与IMX6ULL之间有两个通信接口:I2C和I2S 其中I2C用于配置WM8960 I2S用于音频数据传输 修改设备树文件 编写I2C子节点设备树 code ...

最新文章

  1. 通过windows系统封杀IP与端口
  2. pandas读取大文件(chunksize)并通过sqlalchemy写入MySQL数据库
  3. pyhton object is not subscriptable 解决
  4. 谈mvc开发中gzip压缩的应用
  5. Android SQLite数据库的详细使用
  6. poj1274 最大二分匹配
  7. signalr中Group 分组群发消息的简单使用
  8. 【LeetCode】剑指 Offer 60. n个骰子的点数
  9. d3 v5 api arrays
  10. Oracle 9i安全审计技术在电子政务中的应用
  11. Spark 广播变量BroadCast
  12. DIV+CSS的命名规则有利于SEO
  13. 立即收藏!2019前端工程师如何应对裁员潮?
  14. 当前服务器更新维护公告,【已开服】1月17日全部服务器更新维护公告
  15. 《日光之下无新事》畅游九州欢心娱乐
  16. 引发卡塔尔断交潮的“俄罗斯黑客”究竟有多牛?
  17. 什么是股票情绪量化指标?
  18. 上级对下级用通知合适吗_“通知”是上级给下级的还是下级给上级的?
  19. python垃圾邮件识别_Python 手写朴素贝叶斯分类器检测垃圾邮件/短信
  20. 计算机应用基础知识盘,计算机应用基础知识介绍.ppt

热门文章

  1. React学习初探(环境搭建)
  2. GitLab 安装配置指南
  3. mydate97设置时间
  4. 浅谈网站遇到问题时的解决办法及提问技巧
  5. Unicode : RLO
  6. Ubuntu 下修改 Could not reliably determine the serve
  7. Weblogic Server上部署War包
  8. 【飞秋怎么用】企业应用
  9. C++数据与我们转移过空间之后
  10. FEIM Studios 团队欢迎您加入