GitLens would sometimes push to main branch instead of working branch. #3039
Unanswered
irrationnelle
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @irrationnelle, To help understand this issue a bit better, would you mind telling me if I'm capturing these steps correctly?
Is that accurately describing what is happening in your case? If not, would you mind posting the issue you are seeing step by step? You mentioned changes being "pushed", so I'm wondering if remote branches might be involved, in which case we can confirm things like branch upstreams and git config settings. |
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
-
Hello. Thanks to your help, I am effectively using GitLens in VS Code.
However, I'm encountering an issue. When I switch branches to modify my work and then push the commit, it often gets pushed to the main branch instead of the one I was working on.
This seems like a significant problem, so I believe it's not a bug, but rather an error on my part. Is there a setting I need to adjust or something specific I should check before pushing the commit?
FYI: When this problem arises, even if I switch branches to 'main' in the GitLens commit graph, the changes are not reflected and the issue persists in the current branch. I'm wondering if there's any connection.
Beta Was this translation helpful? Give feedback.
All reactions