| Crates.io | forcegit |
| lib.rs | forcegit |
| version | 0.1.0 |
| created_at | 2026-01-07 11:47:34.990124+00 |
| updated_at | 2026-01-07 11:47:34.990124+00 |
| description | Sync .git directories to remote machines |
| homepage | https://github.com/kushaldas/forcegit |
| repository | https://github.com/kushaldas/forcegit |
| max_upload_size | |
| id | 2028094 |
| size | 26,049 |
A command-line tool to sync .git directories to remote machines via SSH.
cargo install --path .
Run forcegit in a project directory to configure its remote:
cd myproject
forcegit
# Enter remote [user@]host:path: user@server:/home/user/myproject
If no user is specified, the current user is used.
forcegit sync
This will:
.git.gitforcegit diff
Shows the local and remote HEAD commits.
# Bash
eval "$(forcegit auto bash)"
# Zsh
eval "$(forcegit auto zsh)"
# Fish
forcegit auto fish | source
Configuration is stored in ~/.config/forcegit/config.toml:
[directories.myproject]
host = "server"
path = "/home/user/myproject"
user = "user" # optional
MIT.