Kaynağa Gözat

feat: 添加 README

NiceTry12138 5 ay önce
ebeveyn
işleme
392feb8fdf
1 değiştirilmiş dosya ile 15 ekleme ve 0 silme
  1. 15 0
      README.md

+ 15 - 0
README.md

@@ -0,0 +1,15 @@
+# 可能有用的脚本
+
+## UpdateGitRep.js
+
+要求当前项目,根目录存在 .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`