From 04059a897b44b6e64dd985655fa6ee431bf90ef9 Mon Sep 17 00:00:00 2001 From: aloslider <53711835+aloslider@users.noreply.github.com> Date: Sat, 24 Oct 2026 02:42:56 +0300 Subject: [PATCH] [lazygit] Add custom push commands --- dot_config/lazygit/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dot_config/lazygit/config.yml b/dot_config/lazygit/config.yml index 18b4393..ed77719 100644 --- a/dot_config/lazygit/config.yml +++ b/dot_config/lazygit/config.yml @@ -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