开发者

Deleted files locally but cannot push changes to heroku

开发者 https://www.devze.com 2023-03-09 15:44 出处:网络
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 com

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 he开发者_如何学Clp!


i fixed this same problem with

git commit -a


I ran git push heroku master, it said everything was up to date although my commit showed that there were deleted files

That does smell like a DETACHED HEAD mode, where you are making commits without being in any branch.
Check what git branch --all returns

0

精彩评论

暂无评论...
验证码 换一张
取 消