[lazygit] Add custom push commands

This commit is contained in:
aloslider committed 2026-10-24 02:42:56 +03:00
1 parent 89d4f130ba
commit 04059a897b
1 file changed
+12
+12
View File
@@ -1,2 +1,14 @@
os:
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