Skip to content

Instantly share code, notes, and snippets.

@yydai
Created June 15, 2017 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yydai/18a9e5e80547dedb5195134a5a3832e9 to your computer and use it in GitHub Desktop.
Save yydai/18a9e5e80547dedb5195134a5a3832e9 to your computer and use it in GitHub Desktop.
pub_date = `date +'%y.%m.%d %H:%M:%S'`
messages = "Auto published by yydai at $(pub_date)"
publish:
@echo "======================================"
@echo "Begin publish the site, please wait..."
@echo "======================================"
@git add .
@-git commit -m $(messages)
@-git pull
@git push origin
@echo "===============Success================"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment