-
I need to fetch the remote before push but I don't want it keep fetching in background. I guess I can set the fetchInterval to a large value. Is there a better solution? |
Beta Was this translation helpful? Give feedback.
Answered by
mark2185
Jul 25, 2024
Replies: 1 comment 3 replies
-
Maybe adding |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could add a
core.hooksPath
and have a global hook there (docs).Second option would be to create a custom command within
lazygit
and map it toP
(push), something likegit fetch && git push
.Third option would be to create a habit of fetching/pulling before pushing since it's something one should use even when not using any git wrappers.