Makefile 347 B

12345678910
  1. # makefile to automatize simple operations
  2. server:
  3. python -m http.server
  4. deploy:
  5. # assume there is something to commit
  6. # use "git diff --exit-code HEAD" to know if there is something to commit
  7. # so two lines: one if no commit, one if something to commit
  8. git commit -a -m "New deploy" && git push -f origin HEAD:gh-pages && git reset HEAD~