diff --git a/code/backup_rsync_git.sh b/code/backup_rsync_git.sh index 76e7cfc..c644a7c 100755 --- a/code/backup_rsync_git.sh +++ b/code/backup_rsync_git.sh @@ -44,7 +44,7 @@ repo_abs="$(cd "$RSYNC_TARGET_DIR" && pwd)" rel_target="." if [[ ! -d "$repo_abs/.git" ]]; then - git -C "$repo_abs" init >/dev/null + git -C "$repo_abs" init -b main >/dev/null fi git_target() {