macOS下git svn出错

macOS下使用git SVN提示:Can't locate SVN/Core.pm in @INC

我这里的情况是在升级了macOS Big Sur之后出现的,参考Stack Overflow上的答案,进行如下修改:

  1. 修改文件 /usr/local/Cellar/git/【version number】/libexec/git-core/git-svn。 将首行#!/usr/bin/perl 修改为#!/usr/local/bin/perl
  2. 在sourcetree中修改配置:sourcetree-->preferences-->git--->use system git, 浏览选择 如下路径的git:/usr/local/Cellar/git/【git_version】/bin/git

参考:

posted on 2020-12-20 00:55  rainduck  阅读(309)  评论(0)    收藏  举报

< 2025年7月 >
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9

导航

统计

点击右上角即可分享
微信分享提示