OpenWrt拉取其它包进行编译的方法2

原文 https://github.com/maxlicheng/luci-app-ssr-plus

使用方法一

    #源码根目录,进入package文件夹
    cd package/
    #创建一个openwrt-packages
    mkdir openwrt-packages
    #进入新建的文件夹
    cd openwrt-packages
    #下载源码
    git clone https://github.com/maxlicheng/luci-app-ssr-plus.git
    #回到源码根目录
    cd ../..
    #拉取源码
    git pull

使用方法二

    #源码根目录,编辑.gitignore文件
    vi .gitignore
    #在文件最后一行,加入
    git rm --cached package/lean/luci-app-ssr-plus/ -r
    #保存后,进入lean源码目录
    cd package/lean/
    #下载源码
    git clone https://github.com/maxlicheng/luci-app-ssr-plus.git
    #回到源码根目录
    cd ../..
    #拉取源码
    git pull

注意

以上两种方法只能选其中一种, 采用任一方法后,ssr就不受git pull影响了。



发表评论

您的电子邮箱地址不会被公开。

80 − 75 =