-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commands and Flags
Akash Rajpurohit edited this page Aug 12, 2024
·
5 revisions
To sync your repositories, run the following command:
git-syncThis command will clone or update all your repositories to the specified backup directory.
To check the version of git-sync, run the following command:
git-sync versionTo view the help message, run the following command:
git-sync helpYou can specify the path to the configuration file using the --config flag. For example:
git-sync --config /path/to/config.yamlYou can specify the backup directory using the --backup-dir flag. For example:
git-sync --backup-dir /path/to/backupSince v0.7.0, you can now setup cron job directly from the CLI tool instead of maintaining a cron job yourself. To do so, use the --cron flag and pass a valid cron expression.
git-sync --cron "* * * * *"You can specify the log level using the --log-level flag. For example:
git-sync --log-level=debugDefault log level is info.