Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/neogit/popups/push/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ local function push_to(args, remote, branch, opts)
if res and res:failure() and not using_force and updates_rejected and config.values.prompt_force_push then
logger.error("Attempting force push to " .. name)

local message = "Your branch has diverged from the remote branch. Do you want to force push?"
local message = "Your branch has diverged from the remote branch. Do you want to force push with lease?"
if input.get_permission(message) then
table.insert(args, "--force")
table.insert(args, "--force-with-lease")
res = git.push.push_interactive(remote, branch, args)
end
end
Expand Down