Skip to content

Instantly share code, notes, and snippets.

@nsuvorov83
Last active August 3, 2023 11:51
Show Gist options
  • Select an option

  • Save nsuvorov83/29c249708a12ae84b0d2ac458c41ba79 to your computer and use it in GitHub Desktop.

Select an option

Save nsuvorov83/29c249708a12ae84b0d2ac458c41ba79 to your computer and use it in GitHub Desktop.
Backups "custom_dir" into git repo with current datetime as a message
#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