标签:hub 环境变量 code sds 配置 commit cut it管理 需要
overcommit是一款用来管理 github 钩子的工具。需要通过 RubyGems 安装。
安装步骤如下:
Rubyubuntu系统,sudo snap install ruby --classic , 安装完 Ruby 自带gem。验证是否成功
ruby -v
gem -v
overcommitgem install overcommit
验证是否成功
gem list |grep overcommit
gem environment
...
EXECUTABLE DIRECTORY: /home/sm/.gem/bin
...
这个目录里面有 overcommit 的可执行文件,故把这个目录加入到 环境变量中
vim /etc/profile
export PATH=$PATH:/home/sm/.gem/bin
source /etc/profile
overcommitgit status # 确保在一个git管理的项目中
overcommit --install
验证是否安装成功
ll .git/hooks/ |grep overcommit
overcommit 官方文档
标签:hub 环境变量 code sds 配置 commit cut it管理 需要
原文地址:https://www.cnblogs.com/jijizhazha/p/11824886.html