From a5fbf7dea03427fa6b46f28a0b0f9657af067408 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 18 Dec 2025 17:50:09 +0100 Subject: [PATCH] add a custom lazygit command, so I can push specific commits --- .config/lazygit/config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/lazygit/config.yml b/.config/lazygit/config.yml index ba203c1..dd08271 100644 --- a/.config/lazygit/config.yml +++ b/.config/lazygit/config.yml @@ -13,7 +13,12 @@ git: pagers: - colorArg: always pager: diff-so-fancy - useConfig: false overrideGpg: true update: method: never +customCommands: + - key: 'P' + command: "git push {{.SelectedRemote.Name}} {{.SelectedLocalCommit.Sha}}:{{.SelectedLocalBranch.Name}}" + context: "commits" + loadingText: "Pushing commit..." + description: "Push a specific commit (and any preceding)"