Last active
August 3, 2023 11:51
-
-
Save nsuvorov83/29c249708a12ae84b0d2ac458c41ba79 to your computer and use it in GitHub Desktop.
Backups "custom_dir" into git repo with current datetime as a message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Backups "custom_dir" into git repo with current datetime as a message | |
| today=`date +%Y-%m-%dT%H:%M:%S` | |
| cd ~/custom_dir | |
| git add . | |
| git commit -m "Backup: $today" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment