When running from a worktree, main is checked out in the primary tree, so the pull/push must be run from there instead.