I encounter this weird situation...
I have a commit pushed to github...
then the commit disappears from git status...
how can I commit that same file to heroku?
any help would be appreciated.
First add the heroku remote to your local git.
git remote add <your heroku git url>
replace <your heroku git url>
with your actual heroku git url, you can find it from settings tab of on your heroku dashboard, it looks something like this: https://git.heroku.com/app-name.git
once heroku remote is added, you can simply push the latest commit by:
git push heroku master
replace master
with whatever branch you want to push, normally it is master
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.