-
If I have two mains on my fork, one is origin and one is upstream, I get a error message in subject when I'm trying to push. Currently I have to drop to command line from lazygit to push. What is a practical way to resolve this? |
Beta Was this translation helpful? Give feedback.
Answered by
mark2185
Nov 21, 2023
Replies: 1 comment 11 replies
-
Is it a new branch that you're trying to push or is it an already existing one? Does it happen on every push? What do you run in the command line to solve it? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the simplest thing would be to rename the
master
branch tomain
in your fork.Unset the upstream via the menu, rename the branch to
main
and push it toorigin/main
. Tried it now and it works, and requires no intervention from our side.The tag named
refs/heads/master
is not something I have come across, so I take it this workaround will suffice even for others who find themselves in such a situation.