### git-sync-rs Configuration File Example Source: https://github.com/colonelpanic8/git-sync-rs/blob/master/README.md Provides an example of a TOML configuration file for git-sync-rs, demonstrating how to set default synchronization parameters and configure specific repositories. ```TOML [defaults] sync_interval = 300 sync_new_files = true commit_message = "Auto-sync: {hostname} at {timestamp}" remote_name = "origin" [[repositories]] path = "~/my-notes" sync_new_files = true [[repositories]] path = "~/my-docs" remote_name = "backup" ``` -------------------------------- ### Install git-sync-rs with Cargo Source: https://github.com/colonelpanic8/git-sync-rs/blob/master/README.md Installs the git-sync-rs tool using the Cargo package manager. This command downloads the latest version from crates.io and compiles it locally. ```Bash cargo install git-sync-rs ``` -------------------------------- ### git-sync-rs Command Line Options Source: https://github.com/colonelpanic8/git-sync-rs/blob/master/README.md Lists common command-line flags available for git-sync-rs, such as options for handling new files, specifying remotes, setting directories, and controlling output verbosity. ```Bash -n, --new-files -r, --remote -d, --directory -v, --verbose -q, --quiet --config ``` -------------------------------- ### Basic git-sync-rs Commands Source: https://github.com/colonelpanic8/git-sync-rs/blob/master/README.md Demonstrates fundamental commands for interacting with git-sync-rs, including checking repository status, performing a one-time synchronization, and initiating watch mode. ```Bash git-sync-rs /path/to/repo check git-sync-rs /path/to/repo sync git-sync-rs /path/to/repo watch git-sync-rs /path/to/repo watch --debounce 2 --interval 300 ``` -------------------------------- ### git-sync-rs Watch Mode Options Source: https://github.com/colonelpanic8/git-sync-rs/blob/master/README.md Illustrates various ways to use the watch mode in git-sync-rs, including basic watching, setting custom debounce intervals, periodic syncing, and enabling dry-run mode. ```Bash git-sync-rs watch /path/to/repo git-sync-rs watch /path/to/repo --debounce 2 git-sync-rs watch /path/to/repo --interval 300 git-sync-rs watch /path/to/repo --dry-run ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.