Q
QPR_JAY
Guest
Having my first play with Azure DevOps as a VC solution. Disclaimer I am new to Git so this may be a misunderstanding on my part.
So I created a new project in dev.azure.com, added a readme and a .gitignore.
Then I opened my local copy of Visual Studio 2019 and created an empty web project.
I pointed this to my Azure Devops site and all appears well. I can see incoming and outgoing commits in the team explorer window of VS2019.
So I created a new web form (purely so I could see how I can sync/commit etc) and now I am trying to push this new file to the remote repo for my project. When I click "push" the output window says
Error encountered while pushing branch to the remote repository: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes before pushing again.
Pushing master
Error: failed to push some refs to 'https://dev.azure.com/xxx/DevOps.com/_git/DevOps.com'
Error: hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again
As I say, Git, branches is new to me (I am setting up this environment specifically to learn) so I figure maybe I need to fetch first, so I do and all appears to be ok. Now I try to push again and get exactly the same error.Have I done something wrong? I just want to be able to push changes to my remote repo as and when required.
Continue reading...
So I created a new project in dev.azure.com, added a readme and a .gitignore.
Then I opened my local copy of Visual Studio 2019 and created an empty web project.
I pointed this to my Azure Devops site and all appears well. I can see incoming and outgoing commits in the team explorer window of VS2019.
So I created a new web form (purely so I could see how I can sync/commit etc) and now I am trying to push this new file to the remote repo for my project. When I click "push" the output window says
Error encountered while pushing branch to the remote repository: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes before pushing again.
Pushing master
Error: failed to push some refs to 'https://dev.azure.com/xxx/DevOps.com/_git/DevOps.com'
Error: hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again
As I say, Git, branches is new to me (I am setting up this environment specifically to learn) so I figure maybe I need to fetch first, so I do and all appears to be ok. Now I try to push again and get exactly the same error.Have I done something wrong? I just want to be able to push changes to my remote repo as and when required.
Continue reading...