add --git sync option

This commit is contained in:
2026-01-23 17:37:04 +02:00
parent ce339d383c
commit a3598a5f79
3 changed files with 88 additions and 2 deletions

16
MANUAL
View File

@@ -29,6 +29,12 @@ OPTIONS
Setup mode for SFTP workflow. Creates helper scripts but skips
lazygit upload and .gitignore modifications.
--git
Git clone mode. Clones the repository from the remote server using
SSH with password authentication. Uploads lazygit to the server and
marks it as assume-unchanged (both locally and on server). Only
generates ssh.sh helper script.
MODES
Default mode:
- Syncs terminal info (xterm-ghostty or xterm-kitty)
@@ -49,6 +55,13 @@ MODES
- No helper scripts
- No configuration files
--git mode:
- Clones git repository via SSH with password
- Uploads lazygit to server
- Marks lazygit as assume-unchanged (server + local)
- Generates: ssh.sh only
- No tar archive, no sftp.json, no other scripts
EXAMPLES
Full setup with all scripts:
./sync-project.sh
@@ -59,6 +72,9 @@ EXAMPLES
SFTP workflow without git tools:
./sync-project.sh --sftp-only
Clone git repository from server:
./sync-project.sh --git
GENERATED SCRIPTS
remote-local.sh Pull files from server
local-remote.sh Push files to server