We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c66f0e commit 00cb404Copy full SHA for 00cb404
exercise_utils/git.py
@@ -68,3 +68,8 @@ def init(verbose: bool) -> None:
68
def push(remote: str, branch: str, verbose: bool) -> None:
69
"""Push the given branch on the remote."""
70
run_command(["git", "push", remote, branch], verbose)
71
+
72
73
+def track_remote_branch(remote: str, branch: str, verbose: bool) -> None:
74
+ """Tracks a remote branch locally using the same name."""
75
+ run_command(["git", "branch", branch, f"{remote}/{branch}"], verbose)
0 commit comments