Skip to content

git

制作补丁

先将文件暂存

sh
git diff --cached > my.patch

添加一个 git 子项目

sh
#git submodule add  https://github.com/topjohnwu/libcxx module/jni/libcxx
git submodule add [url] [path]

clone项目 并且下载子项目

sh
git clone --recursive -b v6.4 https://github.com/LSPosed/LSPlant
cd LSPlant
#一定要进入到目标目录
git submodule init  
git submodule sync
git submodule update --init --recursive --remote

提示

  • 如果第一步有无法访问的仓库 编辑.gitmodules文件删除不能访问的仓库
  • 去到对应能正常访问的submodule目录删除.git文件
  • 这里编辑LSPlant/.gitmodules
  • del LSPlant\lsplant\src\main\jni\external\dex_builder\.git

Git添加代理

sh
git config --global http.proxy http://192.168.2.12:7890
git config --global https.proxy http://192.168.2.12:7890

查看当前信息

sh
git tag

git describe --tags