Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

git push fails in VS but works on command line

Paul Coulson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 14, 2026

I recently added a user to BitBucket for use in the API (read only). If I log in to BB with this account, then switch back to my own account, VS complains when I try to push (but pull ok). Using git command line works fine. The username and email are set up correctly in VS remote settings for my own account. I tried using sync but dont get a credentials prompt.

1 answer

1 accepted

0 votes
Answer accepted
Paul Coulson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 14, 2026

You can make it work by deleting the git entry in Windows credentials but still a bit inconvenient. VS doesn't seem to cope with switching users.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events