您是否尝试使用git remote并git diff查看差异?按照您的说法,您从文件夹 A 中创建了文件夹 B 并对文件夹 B 进行了一些修改。因此,git diff只要文件夹 A 保持不变,a 就应该只显示文件夹 B 中的差异或更改。要确定应用程序是否在线,您需要查看 Heroku Dashboard 和git remote show herokuIMO 的相应文件夹。您可以从 fetch 和 push url 中找到应用程序名称。如果您想查看 heroku 中到底部署了什么,您可以运行heroku run bash它基本上可以帮助您找出或猜测部署在那里的代码。