Skip to content

Instantly share code, notes, and snippets.

@PartTimeLegend
Created March 1, 2021 10:34
Show Gist options
  • Select an option

  • Save PartTimeLegend/f2e565feb3f9eaac944aa5c2923f2932 to your computer and use it in GitHub Desktop.

Select an option

Save PartTimeLegend/f2e565feb3f9eaac944aa5c2923f2932 to your computer and use it in GitHub Desktop.
Backup dir to git
#!/usr/bin/env bash
cd /config
git status
git add .
dt=$(date '+%d/%m/%Y %H:%M:%S');
git commit -m "$dt"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment