Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions specs/git/set_upstream_branch.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
---
name: Set upstream branch
command: git push -u origin HEAD
command: git branch --set-upstream-to={{remote}}/{{remote_branch}} {{local_branch}}
arguments:
- name: remote
description: The name of the remote
default_value: origin
- name: remote_branch
description: The name of the remote branch that the local branch should be point to
default_value: main
- name: local_branch
description: The name of the local branch that we want to set
default_value: main
tags:
- git
description: Sync the local branch to the remote branch with the same name.
arguments: []
description: Sets the upstream for a local branch to a remote branch.
shells: []
8 changes: 8 additions & 0 deletions specs/git/synchronize_upstream_branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Synchronize upstream branch
command: git push -u origin HEAD
tags:
- git
description: Sync the local branch to the remote branch with the same name.
arguments: []
shells: []