gpt4 book ai didi

node.js - 从 git 子目录部署到 heroku

转载 作者:太空宇宙 更新时间:2023-11-04 01:01:52 24 4
gpt4 key购买 nike

我正在尝试从项目中的特定目录部署到heroku:

我尝试过这个命令:git subtree push --prefix 输出heroku master

我得到了回复:

错误:无法将一些引用推送到“git@heroku.com:intquest.git”提示:更新被拒绝,因为当前分支的尖端落后提示:它的远程对应物。集成远程更改(例如

有办法--force这个命令吗?或者我到底做错了什么?

最佳答案

如果您确定用新的历史记录替换远程heroku master历史记录,您可以尝试类似this answer的操作:

git push heroku `git subtree split --prefix output master`:master --force

关于node.js - 从 git 子目录部署到 heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26310172/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com