From 7476f1211537c3bee8a65b22f0f59bbce90bc994 Mon Sep 17 00:00:00 2001 From: Sloane Perrault Date: Thu, 31 Aug 2023 13:19:30 -0400 Subject: [PATCH] remove `-u origin head` from push commands these push to master if used from a worktree! --- .config/nvim/lua/keys.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/keys.lua b/.config/nvim/lua/keys.lua index 8efb60e..e6716c2 100644 --- a/.config/nvim/lua/keys.lua +++ b/.config/nvim/lua/keys.lua @@ -64,8 +64,8 @@ wk.register({ g = { name = 'git', s = { 'Git', 'Status' }, - p = { 'Git push -u origin head', 'Push' }, - P = { 'Git push -u origin head --force-with-lease', 'Push (force with lease)' }, + p = { 'Git push', 'Push' }, + P = { 'Git push --force-with-lease', 'Push (force with lease)' }, f = { 'Git fetch', 'Fetch' }, r = { name = 'rebase',