Replies: 1 comment 1 reply
-
I'm hesitant to add such an option to lazygit; it would be tricky to make this work well with our handling of force-pushing, which currently only works for pushing a single branch.
Yes; in your repo, create a file customCommands:
- key: P
command: echo git push --all
context: global |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few repositories where I want to
git push --all
instead of regular pushing, so that all remotes are pushed at once.I'm well aware of the "well just remember" and the "setup CI to do it for you" solutions
But they are both suboptimal and overengineered respectively.
Ideally, all I would need is for lazygit to add the
--all
flag whenever I'm inside repo X or Y.Is there a configurable way to do this without having to use a separate custom command?
If not, is there a way to setup a specific lazygit configuration per repo,
in order to override the push key binding with a custom command, but just for that repo?
Beta Was this translation helpful? Give feedback.
All reactions