Repository navigation
|
Hello! I could not find an answer to this in the documentation or this repository. Of course I may be blind, but I will be thankful for an answer. Is there an in-built way to push with an option. I sometimes push with If not in-built, what would be the best way to implement this? Maybe a new global keybind? An option? |
Replies: 2 comments 1 reply
|
For your specific use case a custom command would probably be the easiest solution. |
|
You can make this a keyless global custom command, so it appears in customCommands:
- description: 'Push with ci.skip'
context: 'global'
command: 'git push --push-option=ci.skip'
output: 'popup'
outputTitle: 'Push with ci.skip'Append the entry to your existing This complete local example includes a disposable receiver that records the actual push option and updated branch. On Lazygit 0.66.2, two custom pushes delivered |
You can make this a keyless global custom command, so it appears in
?without taking over the normal push key:Append the entry to your existing
customCommandslist, reopen Lazygit, press?, typeci.skip, then Enter. It uses the same destination and ref selection as your normalgit push; the result appears in a popup. The custom-command docs also show how to add a key if you prefer one.This complete local example includes a disposable receiver that records the actual push option and updated branch. On Lazygit 0.6…