Running a Bash Script Before Shutdown: Automatically Pushing Code to GitHub

Опубликовано: 19 Июль 2026
на канале: School of Intology
74
1

Here is another video on cool scripts you can set up on your Linux install.

Let me know if you guys run into any issues in the comments below. If you guys want to see other ways to accomplish the same purpose; without creating different branches every time, just let me know in the comments. I might make a separate video on that.

Link to GitHub Repo: https://github.com/YomenT/push-code-b...

Commands to Set up Service:
sudo systemctl enable git-push-before-shutdown.service
sudo systemctl start git-push-before-shutdown.service
sudo systemctl status git-push-before-shutdown.service

Other Commands Used in Video:
chmod +x filename.sh
git config --global credential.helper store
cat ~/.git-credentials