chrisgrieser / nvim-tinygit

A lightweight bundle of commands focussed on swift and streamlined git operations.
MIT License
154 stars 4 forks source link

Feature Request: force push with lease #4

Closed Swanncastel closed 8 months ago

Swanncastel commented 11 months ago

Feature Requested

Add the ability to force push with lease

Relevant Screenshot

No response

Checklist

Swanncastel commented 11 months ago

I've found a workaround : never force push on commit and amend, then push with force and pullBefore BUT the code uses the command git pull; be careful, if the git pull fails, we are going to force push without the remote code. git pull && might be better.

Swanncastel commented 11 months ago

Actually this is not even working, I have to force push with lease from my terminal

chrisgrieser commented 11 months ago

yeah, I am not much of an expert on all the git push/pull options, so feel free to make a PR if you have looked through the code already anyway?

Swanncastel commented 11 months ago

Hi, I'm going to look at it when I have some time

chrisgrieser commented 8 months ago

okay, I read up on this and it seems --force-with-lease is pretty much always the safer option, so I just switched it to --force-with-lease throughout.