问题描述
我正在尝试完成Azure Web应用程序教程.在步骤"推送至来自Git的Azure ",我正尝试使用推送到Github,但收到错误消息
I'm attempting to finish an Azure web app tutorial. In the step "Push to Azure from Git", I'm attempting to push to Github using, but getting error message
SivesA@ONE7-FAL138552 MINGW64 /c/2017/11 November/20112017/nodejs-docs-hello-world-master (master)
$ git remote add azure https://[email protected]/nodejswebappadamsives2.git
fatal: remote azure already exists.
无论我使用什么URL.
no matter what URL I use.
我已经确定要初始化并提交该项目.我还尝试通过另一个 SO问题来解决问题,但似乎撞到了砖墙.我的远程属性如下:
I've been sure to inititalise and commit the project. I've also tried resolution through another SO question, but seem to be hitting a brick wall. My remote properties are as follows:
SivesA@ONE7-FAL138552 MINGW64 /c/2017/11 November/20112017/nodejs-docs-hello-world-master (master)
$ git remote -v show
azure https://[email protected]/nodejswebapp.git (fetch)
azure https://[email protected]/nodejswebapp.git (push)
Github存储库为 https://[email protected] /nodejswebappadamsives2.git
the Github repository is https://[email protected]/nodejswebappadamsives2.git
推荐答案
系统上似乎已经存在名称为 azure 的远程服务器,并且该远程服务器包含URL" https://[email protected]/nodejswebapp.git ".
It seems that the remote with the name azure already exists on your system and that remote contains the url "https://[email protected]/nodejswebapp.git".
如前所述,您希望将远程URL设为" https: //[email protected]/nodejswebappadamsives2.git ".因此,您需要执行以下步骤来更新远程" azure "的网址:-
As you have mentioned that you want your remote url as "https://[email protected]/nodejswebappadamsives2.git". Therefore your need to do the following steps to update the url of the remote "azure":-
git remote set-url azure https://[email protected]/nodejswebappadamsives2.git
OR
您可以根据需要添加具有新名称的新遥控器,例如"newazure" .请按照以下命令添加新内容:-
You can add a new remote with new name like "newazure" with it's URL as you want. Follow the below command to add new:-
git remote add newazure https://[email protected]/nodejswebappadamsives2.git
这篇关于无法推送到Azure项目的Github存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!