diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-06 09:54:00 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-06 09:54:00 +0200 |
| commit | fdde3a49d44e7e1404d7665880158a5b84c3dcad (patch) | |
| tree | 94ec9782ba2b2763ee833d75e5a3fb7d581d5017 /config.example | |
| parent | 78742f69a5080fe0bdab7dac61400028ee107a37 (diff) | |
| download | dots-backup-fdde3a49d44e7e1404d7665880158a5b84c3dcad.tar.gz dots-backup-fdde3a49d44e7e1404d7665880158a5b84c3dcad.zip | |
Add GIT_REMOTE, GIT_BRANCH config options and --push flag
- GIT_REMOTE in config auto-registers origin on every run (idempotent)
- GIT_BRANCH sets push target branch (defaults to current branch)
- -p/--push pushes after commit; errors if no remote available
- Updated config.example and README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'config.example')
| -rw-r--r-- | config.example | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.example b/config.example index f4b98f5..79e716d 100644 --- a/config.example +++ b/config.example @@ -9,3 +9,9 @@ # External dotfiles list (one path per line, # for comments) #DOTFILES_LIST="${HOME}/.config/dot-backup/files.list" + +# Git remote URL — if set, script ensures this is registered as 'origin' +#GIT_REMOTE="git@github.com:you/my-dotfiles.git" + +# Branch to push to when using -p/--push (defaults to current branch if unset) +#GIT_BRANCH="master" |
