Ruby on rails git拉heroku主机失败
我正在尝试将另一个开发人员推送的最新代码拉到部署到本地系统的heroku: 我执行了以下命令:Ruby on rails git拉heroku主机失败,ruby-on-rails,git,heroku,Ruby On Rails,Git,Heroku,我正在尝试将另一个开发人员推送的最新代码拉到部署到本地系统的heroku: 我执行了以下命令: $ git pull heroku master failed 但我得到了以下错误: remote: Counting objects: 13, done. remote: Compressing objects: 100% (8/8), done. remote: Total 8 (delta 5), reused 1 (delta 0) Unpacking objects: 100% (8/8)
$ git pull heroku master failed
但我得到了以下错误:
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 5), reused 1 (delta 0)
Unpacking objects: 100% (8/8), done.
From https://git.heroku.com/titan-demo
* branch master -> FETCH_HEAD
* [new branch] master -> heroku/master
Auto-merging db/schema.rb
CONFLICT (content): Merge conflict in db/schema.rb
Automatic merge failed; fix conflicts and then commit the result.
冲突发生在以下文件中,此时git无法自动合并冲突,因此您将在此文件db/schema.rb中手动删除冲突。文件冲突位置表示为以下语法,以便在推送代码后删除不必要的代码。
//冲突示例
。这可能是因为您在heroku中使用pg,而在本地使用不同的数据库。顺便说一句,为什么要拉heroku master?“heroku提供的git服务主要用于部署,从中克隆的功能是为了方便。我们强烈建议您将代码存储在另一个git存储库中,如,并将其视为规范。”您可以直接从其他开发人员那里获得代码。git的一个显著特点是它不需要集中式服务器。在互联网代码被直接从一台机器共享到另一台机器之前的日子里。您所需要的只是通过SSH、HTTP访问其他开发人员的机器;在这两种情况下,他都在自己的机器上运行服务器。
CONFLICT occurs in following file at that time the git could not auto merge the CONFLICT so you will remove the conflict in manually in this file db/schema.rb. the file conflict location is denoted as below syntax so you will remove unnecessary code and after you push the code.
// CONFLICT Example
<<<<<<<<<<<< HEAD *code from develop*
>>>>>>>>>>develop *code form your's*