用户可借助此项目配置 git-sanity 工具,实现仓颉子项目的多仓管理。支持下载、推送、同步代码,cherry-pick PR及自定义构建命令,提升多仓协作效率。【此简介由AI生成】
| Files | Last commit | Last update |
|---|---|---|
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago | ||
| 10 months ago |
本仓简介
cangjie 项目的 git-sanity 配置文件。git-sanity 通过本仓配置的内容来管理(下载、推送、同步、cherry-pick PR、构建)仓颉子项目。
git-sanity
git-sanity 简介:
一款支持全系统平台的类似 git-mm 的 gitcode 代码服务平台的多仓管理工具,要求最低 python 版本为3.8。非常方便多仓代码管理,支持一条命令下载多仓、推送多仓、同步多仓、cherry-pick 多仓PR;支持用户自定义命令。
git-sanity 代码仓地址:
https://gitcode.com/yuqiaoyu/git-sanity
git-sanity 安装方式:
pip3 install git-sanity
[注] install 之后可能需要将 $HOME/.local/bin 添加到用户环境变量里:
export PATH=$HOME/.local/bin:$PATH
git-sanity 更新方式:
pip3 install -U git-sanity
git-sanity 使用方式:
- 初始化
git-sanity init -u https://gitcode.com/yuqiaoyu/cangjie_git-sanity.git [-b dev] - 克隆代码
git-sanity clone [-g GROUP_NAME] - 同步远端代码:
git-sanity fetch [-g GROUP_NAME] [-r REMOTE_NAME] git-sanity rebase [-g GROUP_NAME] [-r REMOTE_NAME] [-b REMOTE_BRANCH_NAME] - 切换分支
git-sanity switch -b 分支名 [-g GROUP_NAME] - 修改本地代码
- 自定义/构建命令
git-sanity command -c build // 构建 debug 版本 cangjie-sdk(cjc、runtime、 llvm、std) git-sanity command -c build_r // 构建 release 版本 cangjie-sdk(cjc、runtime、 llvm、std) git-sanity command -c build-cjc // 构建 debug 版本 cjc git-sanity command -c build-llvm // 构建 debug 版本 llvm-project git-sanity command -c build-llvm_r // 构建 release 版本 cangjie-sdk git-sanity command -c build-rt // 构建 debug 版本 cangjie-runtime git-sanity command -c build-rt_r // 构建 release 版本 cangjie-runtime git-sanity command -c clean // 清除构建产物(cjc、runtime、 llvm) git-sanity command -c clean-cjc // 清除构建产物(cjc) git-sanity command -c clean-rt // 清除构建产物(runtime) git-sanity command -c clean-std // 清除构建产物(标准库) git-sanity command -c calculate-reviews // 统计自己的代码检视意见贡献量 - 推送到远端
git-sanity push 你的私仓名 [-f] [-g GROUP_NAME] - cherry-pick 远端提交
git-sanity cherry-pick -i issue_id -p issue所属的项目名
Introduction
用户可借助此项目配置 git-sanity 工具,实现仓颉子项目的多仓管理。支持下载、推送、同步代码,cherry-pick PR及自定义构建命令,提升多仓协作效率。【此简介由AI生成】
Customize your domain