本地删除了文件但无法将更改推送到heroku
我的一些文件弄乱了我的 Heroku 应用程序,所以我决定在本地删除它们。当我尝试将更改推送到 Heroku 时,它说文件已删除,但没有要提交的更改。另外,当我运行 git push heroku master 时,它说一切都是最新的,尽管我的提交显示有已删除的文件。如何推送这些更改或从存储库中删除它们?感谢您的帮助!
I had some files that were messing up my Heroku app so I decided to delete them locally. When I tried to push the changes to Heroku, it says that the files were deleted but there were no changes to commit. Also when I ran git push heroku master, it said everything was up to date although my commit showed that there were deleted files. How can I push these changes or delete them from the repository? Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我解决了同样的问题
i fixed this same problem with
这确实闻起来像 DETACHED HEAD 模式,您无需在任何分支中即可进行提交。
检查 gitbranch --all 返回的内容
That does smell like a DETACHED HEAD mode, where you are making commits without being in any branch.
Check what
git branch --all
returns