왜 헤 로쿠에 푸시 할 수 없나요? [복제]
Dec 08 2020
C:\Users\User\Desktop\AlveusBot>git push heroku master:main
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 16 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (8/8), 1.12 KiB | 1.12 MiB/s, done.
Total 8 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: !
remote: ! ## Warning - The same version of this code has already been built: 36a9c86df5cf527e2e8571da73210e6d36a4fe7e
remote: !
remote: ! We have detected that you have triggered a build from source code with version 36a9c86df5cf527e2e8571da73210e6d36a4fe7e
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote: !
remote: ! If you are developing on a branch and deploying via git you must run:
remote: !
remote: ! git push heroku <branchname>:main
remote: !
remote: ! This article goes into details on the behavior:
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to alveusesbot.
remote:
To https://git.heroku.com/alveusesbot.git
! [remote rejected] master -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/alveusesbot.git'
나는 git and heroku를 처음 접했고 왜이 문제가 발생했는지 이해하지 못하고 해결 방법을 온라인에서 많은 솔루션을 시도했지만 아무것도 작동하지 않았습니다. 어떤 도움이라도 큰 도움이됩니다.
답변
Aarav Dec 08 2020 at 01:57
그것은 말한다 The same version of this code has already been built
아마 코드를 업데이트하지 않은 것을 의미한다. 커밋을해야합니다.
git status
당신이 무엇을 준비했는지보기 위해 달려라 . 무대에 대한 지침이 있어야합니다.- 그런 다음
git commit -m "description"
설명과 함께 실행 하십시오. 모든 준비된 파일을 커밋해야합니다. - 마지막으로 수행하던 명령 인을 실행하여
git push heroku master:main
heroku에 대한 변경 사항을 푸시 / 업데이트합니다.
git에 대한 자세한 정보는 여기에 있습니다 .