Skip to content

Instantly share code, notes, and snippets.

@derme302
Created September 1, 2022 22:57
Show Gist options
  • Save derme302/5a8cb3bd512394e407ecb712950c1262 to your computer and use it in GitHub Desktop.
Save derme302/5a8cb3bd512394e407ecb712950c1262 to your computer and use it in GitHub Desktop.
Sync a folder with Git and add a message with the timestamp
#!/bin/bash
git pull
git add --all
git commit -asm "`date +'%a %d %b %Y %H:%M:%S'`"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment