How to view remote Git revision on Heroku

前端 未结 6 998
感情败类
感情败类 2020-12-12 11:55

For deploying to Heroku, I use git push heroku master. But how do I see which revision I pushed up to heroku? (I\'m often in doubt if I pushed the recent versio

6条回答
  •  不思量自难忘°
    2020-12-12 12:25

    The correct answer is actually so simple. You don't need to checkout anything, neither do you have to resort to COMMIT_HASH hacks (which don't work on Cedar stack). All you need to do is: git ls-remote

     > git ls-remote heroku
    ddaszxcewb585d3a3c00de816a197b14462791a3        HEAD
    ddaszxcewb585d3a3c00de816a197b14462791a3        refs/heads/master
    

提交回复
热议问题