ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Git 自动化TAG标签脚本

    Feb 1, 202410 min read
    #!/bin/bash
    
    # 获取最新的tag
    latest_tag=$(git tag -l | sort -V | tail -n1)
    major=$(echo $latest_tag | cut -d '.' -f 1)
    minor=$(echo $latest_tag | cut -d '.' -f 2)
    patch=$(echo $latest_tag | cut -d '.' -f 3)
    new_patch=$((patch + 1))
    new_tag="${major}.${minor}.${new_patch}"
    echo "New tag: $new_tag"
    git tag $new_tag
    git push origin $new_tag
    echo "Tag $new_tag has been created and pushed to remote."
    
    

    相关文章

    Docker封装启动node项目

    Docker封装启动node项目,包括使用Dockerfile构建镜像、在Linux上构建镜像、启动容器并映射端口。

    macOS 检查下载文件的完整性

    在macOS上使用`shasum -a256`命令检查下载的`traefik`文件的SHA256哈希值以验证其完整性。

    CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.

    CondaSSLError happens when there's a problem with the SSL certificate during a Conda operation, and to fix it, you can update Conda, check the SSL certificate, disable SSL verification as a last resort, or set custom SSL verification paths.

    Cursor的提示词

    Cursor编辑器支持自定义API BASE,用户可以通过代理DUMP提示词,实现根据特定指令重写代码段的功能。

    sqlite create table with datetime

    在SQLite中创建一个包含日期时间字段的表,表名为"words",其中"created_at"字段默认使用本地时间。