Skip to content

Account A signed in everywhere, commit is assigned to account B. How to prevent this? #140769

Discussion options

You must be logged in to vote

Solution found here: https://stackoverflow.com/questions/60977110/vs-code-uses-wrong-github-account-to-push-commits

After looking for answers and trying a lot of them, The one that worked for me:

'Delete C:\Users\USER_NAME.gitconfig file
Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address: git config --global user.email "MY_NAME@example.com'
by user "Arsh Shaikh" on StackOverflow.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dev202409
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Security Build security into your GitHub workflow with features to keep your codebase secure Question
1 participant