Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否检测文件变化,自动和远程同步 #1

Open
Jamesun921 opened this issue Nov 17, 2024 · 1 comment
Open

能否检测文件变化,自动和远程同步 #1

Jamesun921 opened this issue Nov 17, 2024 · 1 comment

Comments

@Jamesun921
Copy link

检测文件/目录增删改查,然后自动和服务器同步。
当然要做些简化,比如假如都是单向同步给服务器,避免冲突问题

@bestK
Copy link
Owner

bestK commented Nov 17, 2024

这些都有,检测变化是否通过 git status 命令实现的,同步前先拉后推,冲突问题可配置不同策略

merge_strategy: 'rebase' # 合并策略(可选,默认normal)
remote_path: 'docs' # 远程仓库中的目标路径(可选)
keep_structure: false # 是否保持原目录结构(可选,默认false)
includes: # 文件包含规则(可选)
- '*.md'
- '*.txt'
- 'images/**'
excludes: # 文件排除规则(可选)
- '*.tmp'
- '.git/**'
- 'draft/**'
webhooks: # 任务关联的webhook(可选)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants