Visual studio 推送到 Github
Visual studio push to Github
我有一个项目是在 visual studio 开始的,我想将它推到 Github。我是 Github 的新手。到目前为止,我已经将 Github 扩展添加到 VS 并创建了一个文件夹将其存储在 Github 上。我已经在 VS 上登录了我的 github,并且 link 编辑到了正确的项目。
问题是当我尝试同步项目时,我遵循了这个 link:
https://github.com/github/VisualStudio/blob/master/docs/using/publishing-an-existing-project-to-github.md
但是我无法将我的 VS 项目同步到我的 Github。我收到的错误消息是:
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://github.com/ProjectExample/Main'
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.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
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.
现在我尝试在 VS 中获取,但它似乎没有什么不同,我的 github 上的项目是一个空文件夹,但 README.md
抱歉,如果这看起来很基本或解释得不好,我仍在学习如何将 Github 扩展与 VS 一起使用,但我会尽力澄清任何问题。我有点不确定下一步该怎么做或解决这个问题,任何意见将不胜感激,谢谢大家的意见
那是因为您创建了一个非空的 GitHub 仓库。
再试一次,这次使用 empty(没有 README,没有 LICENSE 文件...),初始推送应该可以正常工作。
或者,拉取应该将远程 master
分支(及其 README
文件)合并到您的代码中,然后您可以推送。
我有一个项目是在 visual studio 开始的,我想将它推到 Github。我是 Github 的新手。到目前为止,我已经将 Github 扩展添加到 VS 并创建了一个文件夹将其存储在 Github 上。我已经在 VS 上登录了我的 github,并且 link 编辑到了正确的项目。
问题是当我尝试同步项目时,我遵循了这个 link: https://github.com/github/VisualStudio/blob/master/docs/using/publishing-an-existing-project-to-github.md
但是我无法将我的 VS 项目同步到我的 Github。我收到的错误消息是:
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://github.com/ProjectExample/Main'
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.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
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.
现在我尝试在 VS 中获取,但它似乎没有什么不同,我的 github 上的项目是一个空文件夹,但 README.md
抱歉,如果这看起来很基本或解释得不好,我仍在学习如何将 Github 扩展与 VS 一起使用,但我会尽力澄清任何问题。我有点不确定下一步该怎么做或解决这个问题,任何意见将不胜感激,谢谢大家的意见
那是因为您创建了一个非空的 GitHub 仓库。
再试一次,这次使用 empty(没有 README,没有 LICENSE 文件...),初始推送应该可以正常工作。
或者,拉取应该将远程 master
分支(及其 README
文件)合并到您的代码中,然后您可以推送。