GMT与git mergetool冲突

本文介绍了解决gmt命令与gitmergetool冲突的问题。通过修改.zsh配置文件中的gmt别名,确保gmt命令能够正常用于调用gmt软件包,而不是触发git的合并工具。

安装gmt后输入:

gmt --version

测试是否正确安装时提示git mergetool信息。

检查发现是gmt别名指令造成的,找到~/.oh-my-zsh/plugins/git/git.plugin.zsh文件,修改

alias gmt='git mergetool --no-prompt'

这一行。 注释或修改为“gmtool”等。即可解决。

# 项目相关配置 ruoyi: name: RuoYi version: 4.8.1 copyrightYear: 2025 demoEnabled: true profile: D:/ruoyi/uploadPath addressEnabled: false # 开发环境配置 server: port: 80 servlet: context-path: / tomcat: uri-encoding: UTF-8 accept-count: 1000 threads: max: 800 min-spare: 100 # 日志配置 logging: level: com.ruoyi: debug org.springframework: warn # 用户配置 user: password: maxRetryCount: 5 # Spring数据源配置(已修正) spring: datasource: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/ry?useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8 username: root password: 123456 # 修正后的密码 druid: initial-size: 5 min-idle: 5 max-active: 20 max-wait: 60000 validation-query: SELECT 1 test-while-idle: true test-on-borrow: false test-on-return: false # 监控配置 web-stat-filter: enabled: true stat-view-servlet: enabled: true login-username: root login-password: 123456 filter: stat: enabled: true log-slow-sql: true slow-sql-millis: 1000 merge-sql: true thymeleaf: mode: HTML encoding: utf-8 cache: false messages: basename: static/i18n/messages jackson: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss servlet: multipart: max-file-size: 10MB max-request-size: 20MB devtools: restart: enabled: true # MyBatis mybatis: typeAliasesPackage: com.ruoyi.**.domain mapperLocations: classpath*:mapper/**/*Mapper.xml configLocation: classpath:mybatis/mybatis-config.xml # PageHelper分页插件 pagehelper: helperDialect: mysql supportMethodsArguments: true params: count=countSql # Shiro shiro: user: loginUrl: /login unauthorizedUrl: /unauth indexUrl: /index captchaEnabled: true captchaType: math cookie: domain: path: / httpOnly: true maxAge: 30 cipherKey: session: expireTime: 30 dbSyncPeriod: 1 validationInterval: 10 maxSession: -1 kickoutAfter: false rememberMe: enabled: true # 防止XSS攻击 xss: enabled: true excludes: /system/notice/* urlPatterns: /system/*,/monitor/*,/tool/* # 防止csrf攻击 csrf: enabled: false whites: /druid # Swagger配置 swagger: enabled: true application.yml 配置是否齐全
11-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值