- name
- git-sync
- dependencies
- description
- >
Git Sync
Secure git repository management for whitelisted repos.
Usage
# Status of all repos
python3 scripts/git_ctrl.py all
# Status of specific repo
python3 scripts/git_ctrl.py status thesis
python3 scripts/git_ctrl.py status polito
# Recent commits
python3 scripts/git_ctrl.py log thesis -n 20
# Unstaged changes
python3 scripts/git_ctrl.py diff thesis
# Branches
python3 scripts/git_ctrl.py branch thesis
# Fetch (read-only, safe)
python3 scripts/git_ctrl.py fetch thesis
# Pull (requires confirmation)
python3 scripts/git_ctrl.py pull thesis --confirm
# Push (requires confirmation)
python3 scripts/git_ctrl.py push thesis --confirmAllowed Repos
| Name | Path |
|---|---|
thesis | ~/Documenti/github/thesis |
polito | ~/Documenti/github/polito |
Security
- Whitelist: Only
thesisandpolitorepos are accessible - Read-only by default:
status,log,diff,branch,fetchrun freely - Write requires
--confirm:pull,push,merge,checkoutneed explicit confirmation - Blocked commands:
clean,reset --hard,push --forceare never allowed - No secrets: Output does not expose git credentials or tokens