IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    macOS下使用fswatch配合VScode 终端rsync同步更新

    YY.K发表于 2024-09-16 12:43:00
    love 0

    安装fswatch

    brew install fswatch

    VScode 终端运行脚本

    cd local_path
    running=true
       while $running; do
        echo '-------------'
        fswatch -r -L -1 *
        date
        rsync -avP --omit-dir-times --no-perms --no-group --no-owner --progress  -e 'ssh -p 2222'  ./ username@host:/destination_path/
    # git push   
    done &

    运行脚本可以修改加入 git提交



沪ICP备19023445号-2号
友情链接