I have a project with name A in Azure devops which has readme file only. I created a branch with name mybranch from main. I am trying to push a project with name B from local computer to mybranch in azure. I am getting failed to push some refs error. I have tried to rebase but that also fails. Please help
CodePudding user response:
It sounds like you already pushed from one of your repos to Azure DevOps. So you need to update your second repo with git pull
first. If this completes without any errors, then you can do git push
. Otherwise, you need to resolve the errors (most likely because of a merge conflict).
For more details, you should read about git remote
, git pull
, and git push
as well as merge conflicts.