[lazygit] Add custom push commands
This commit is contained in:
1 parent
89d4f130ba
commit
04059a897b
1 file changed
+12
@@ -1,2 +1,14 @@
|
|||||||
os:
|
os:
|
||||||
editPreset: 'nvim'
|
editPreset: 'nvim'
|
||||||
|
|
||||||
|
customCommands:
|
||||||
|
- key: 'P'
|
||||||
|
context: 'remotes'
|
||||||
|
description: 'Push current branch to selected remote'
|
||||||
|
command: 'git push {{.SelectedRemote.Name | quote}} HEAD:{{.CheckedOutBranch.Name | quote}}'
|
||||||
|
output: terminal
|
||||||
|
- key: 'A'
|
||||||
|
context: 'remotes'
|
||||||
|
description: 'Push current branch to every remote'
|
||||||
|
command: 'git remote | while IFS= read -r remote; do git push "$remote" "HEAD:{{.CheckedOutBranch.Name}}"; done'
|
||||||
|
output: terminal
|
||||||
Reference in new issue
Block a user