diff --git a/g3/services/git/client.py b/g3/services/git/client.py index b14b769..80477a1 100644 --- a/g3/services/git/client.py +++ b/g3/services/git/client.py @@ -93,6 +93,6 @@ def push(remote: str, branch: str, force: bool = False) -> None: Push the current branch to the remote. """ if force: - sh.git("push", remote, "--force", branch) + sh.git("push", "--set-upstream", remote, "--force", branch) else: - sh.git("push", remote, branch) + sh.git("push", "--set-upstream", remote, branch)