|
|
5 달 전 | |
|---|---|---|
| README.md | 5 달 전 | |
| UpdateGitRep.js | 5 달 전 |
要求当前项目,根目录存在 .git 文件夹,也就是说项目通过 git 进行管理
因为执行 git 命令需要当前目录是 git 仓库,所以要求当前项目存在 .git
为 Unreal 项目提供 clone 和 update 操作脚本
命令行 node UpdateGitRep.js update
当执行 update 时,会从脚本所在根目录进行递归,将所有存在 .git 文件的文件夹记录下来,最后统一执行 git pull path 的操作,如果 git repo 存在修改,则会弹出提示并且跳过 git pull
命令行 node UpdateGitRep.js clone
当执行 clone 时,会从脚本所在根目录下创建名为 Plugins 的文件夹,并生成名为 RepUrls.json 的配置文件,将所有需要 clone 的仓库地址拷贝到配置文件中,再次执行 node UpdateGitRep.js clone 即可进行 clone