美文网首页
golang http私库解决方案 及 git tag

golang http私库解决方案 及 git tag

作者: Feng_Sir | 来源:发表于2022-02-28 16:14 被阅读0次
    image.png

    README

    配置环境

    go install gitlab.codehub.com/frame/wails/v2/cmd/wails@latest
    
    go env -w GOPRIVATE="gitlab.codehub.com"    //配置私有仓库域名
    go env -w GONOPROXY="gitlab.codehub.com"    //默认不走代理
    go env -w GONOSUMDB="gitlab.codehub.com"    //不进行gosumdb校验
    go env -w GOINSECURE="gitlab.codehub.com"    //采用http协议
    
    
    
    
    #拉取引用包
    go mod tidy
    
    
    #重启ide !!!
    

    git tag

    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    #查看本地仓库git tag
    $ git tag
    v2.0.0-beta.32
    
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    #删除指定本地仓库git tag
    $ git tag -d v2.0.0-beta.32
    Deleted tag 'v2.0.0-beta.32' (was 47211f5)
    
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    #查看本地仓库git tag
    $ git tag
    
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    $ git tag v2.0.0-beta.32 -m 'v2.0.0-beta.32^C
    
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    #查看本地仓库提交记录
    $ git log
    commit ccd10f2e3972c4a4ee61067b1d3791944b5356ec (HEAD -> master, origin/master, origin/HEAD)
    Author: fengweiqiang <550838476@qq.com>
    Date:   Wed Mar 9 11:11:07 2022 +0800
    
        go mod
    
    commit 2fa88667c11450837f2bb3ac3034dfe8def78e5b
    Author: fengweiqiang <550838476@qq.com>
    Date:   Wed Mar 9 10:02:18 2022 +0800
    
        path
    
    commit f1ec5c943fded52262ec028ca64b071db8e906b6
    Author: fengweiqiang <550838476@qq.com>
    Date:   Wed Mar 9 09:54:45 2022 +0800
    
        init
    
    commit f481fdc97c8f082a42384c18318815a6435416a1
    Author: kunlun <15517103103@163.com>
    Date:   Thu Mar 3 15:17:19 2022 +0800
    
        添加初始库代码
    
    commit 2a08da32ac3d9ef44d9f5d83522822655a50d1a4
    Author: 王 向威 <15517103103@163.com>
    Date:   Thu Mar 3 07:01:56 2022 +0000
    
        Initial commit
    (END)
    commit 2fa88667c11450837f2bb3ac3034dfe8def78e5b
    Author: fengweiqiang <550838476@qq.com>
    Date:   Wed Mar 9 10:02:18 2022 +0800
    
        path
    
    commit f1ec5c943fded52262ec028ca64b071db8e906b6
    Author: fengweiqiang <550838476@qq.com>
    Date:   Wed Mar 9 09:54:45 2022 +0800
    
        init
    
    commit f481fdc97c8f082a42384c18318815a6435416a1
    Author: kunlun <15517103103@163.com>
    Date:   Thu Mar 3 15:17:19 2022 +0800
    
        添加初始库代码
    
    commit 2a08da32ac3d9ef44d9f5d83522822655a50d1a4
    Author: 王 向威 <15517103103@163.com>
    Date:   Thu Mar 3 07:01:56 2022 +0000
    
        Initial commit
    q
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    $ git tag
    
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    #给指定的commit打标签
    $ git tag -a v2.0.0-beta.32 ccd10f2e3972c4a4ee61067b1d3791944b5356ec
    
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    #推送代码
    $ git push origin
    Everything up-to-date
    
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    #推送标签到远程仓库
    $ git push origin v2.0.0-beta.32
    Enumerating objects: 1, done.
    Counting objects: 100% (1/1), done.
    Writing objects: 100% (1/1), 163 bytes | 163.00 KiB/s, done.
    Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
    To http://gitlab.codehub.com/frame/wails.git
     * [new tag]         v2.0.0-beta.32 -> v2.0.0-beta.32
    
    rogger@DESKTOP-0630Q8T MINGW64 /d/github.com/wails (master)
    $
    
    

    相关文章

      网友评论

          本文标题:golang http私库解决方案 及 git tag

          本文链接:https://www.haomeiwen.com/subject/aqblrrtx.html