How do I push code to github on shutdown?
- by Ezequiel
I switch between working at home and the office, and sometimes, like today, I forget to run a git commit/push. (I find it easy to ignore the command line since I'm still kind of a beginner, there.)
How can I make it so that when I shut down my Ubuntu OS, it will follow this process:
Check my local code against the github server, executing the rest of this script only if I've made newer changes.
Add all new files.
Make commits with a basic default comment.
Push all changed code to origin master.
If anyone knows how to do this, it would be a major assist. Also, anyone know how to do it for Mac OSX? :D