Reputation: 6806
Most of the time, when I push a git branch to Azure DevOps, it appears in the "Mine" list on the branches screen there. However there is a certain repo where this is not the case. I made sure that my git email address that I am using to push the branches matches the email address I use to sign in to Azure DevOps, but for some reason that one repo won't show me my branches. There are other repos in the same organization that work just fine. What could be going on with this one repo? Thanks! :)
edit: I caught this issue in action!
The individual commits are associated with my account, but when I push to Azure DevOps, the push is associated with Anthony's account. Now I was previously signed in to Azure DevOps as Anthony in order to make changes, but once my account was set up, I thought I switched over to my own. Somehow I must still be logged in as Anthony - but where?
Upvotes: 2
Views: 2156
Reputation: 6806
I had to delete my old credentials using the other account from Windows, as explained here:
Git pushing to remote GitHub repository as wrong user
tl;dr
After doing so, I made a test branch and tried to push it; I was prompted to sign in with my correct account, and after doing so the branch showed up properly on the "my branches" screen in Azure DevOps.
Upvotes: 3
Reputation: 766
There are two things need to be confirmed:
Is this the only branch that you can’t push to your project in Branches – Mine or you tried to push other branches with the same environment( same login and same project and so on) and also failed? If you met the second situation (can’t push any other branches), you should check current project settings – Repositories – create branch is allowed.
Please check the Branches – All and search in Stale if you can see THE branch. If not, maybe you didn’t push the branch successfully, please check if there’s any error or conflict during the push process.
Upvotes: 0
Reputation: 1328942
The default Mine tab on the branches page shows branches you've created, pushed changes to, or set as a favorite, along with the default branch for the repo, such as master.
So either the name (in addition of the email) is not exactly your account.
Or you are viewing those branches while logged in with a different account than the one used to make those commits.
Upvotes: 0