don't default to a force push

This commit is contained in:
Sloane Perrault 2023-05-01 12:32:57 -04:00
parent 1e62d56219
commit 87eb2cf7dd
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -21,7 +21,8 @@ abbr -a gcb git checkout -b
abbr -a gco git checkout
abbr -a gd git diff
abbr -a gf git fetch
abbr -a gp git push --force-with-lease
abbr -a gp git push
abbr -a gP git push --force-with-lease
abbr -a gpl git pull
abbr -a gplr git pull --rebase
abbr -a gr git rebase

View file

@ -65,6 +65,7 @@ wk.register({
name = 'git',
s = { '<cmd>Git<cr>', 'Status' },
p = { '<cmd>Git push --force-with-lease -u origin head<cr>', 'Push' },
P = { '<cmd>Git push -u origin head<cr>', 'Push (force with lease)' },
f = {
name = 'fetch',
o = { '<cmd>Git fetch origin<cr>', 'origin' },