Have I pushed my code to Github yet ?

less than 1 minute read

Have I pushed my code yet ? This is a small script that can be used as part of Git hooks or programme to

  • answer the question Have I pushed my code yet ?
  • or to stop deployment if either
    • there are some unstaged files
    • Unstaged files are not committed yet
    • Last commit is not pushed yet

Link to Github repo: https://github.com/Thanh-Truong/have-I-pushed-my-code-yet