Skip to content
Discussion options

You must be logged in to vote

You can make this a keyless global custom command, so it appears in ? without taking over the normal push key:

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 customCommands list, reopen Lazygit, press ?, type ci.skip, then Enter. It uses the same destination and ref selection as your normal git 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…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jonpas
Comment options

Answer selected by jonpas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants