From fdde3a49d44e7e1404d7665880158a5b84c3dcad Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 6 May 2026 09:54:00 +0200 Subject: 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 --- config.example | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.example') 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" -- cgit v1.2.3